The way in int he driver is not straightforward but it's possible to change the DBDecoder(FActory) with an implementation that would return Tuple implementation directly.
We might even be able to reuse BasicBSONDecoder and a custom DBCallback.
This is heavy lifting though and we might want to double check that the MongoDB driver is the real culprit for all this HashMap creations.
The way in int he driver is not straightforward but it's possible to change the DBDecoder(FActory) with an implementation that would return Tuple implementation directly.
We might even be able to reuse BasicBSONDecoder and a custom DBCallback.
This is heavy lifting though and we might want to double check that the MongoDB driver is the real culprit for all this HashMap creations.