We're updating the issue view to help you get more done. 

Consider reading/writing directly from BSON stream to Tuple to limit unnecessary object creation (like HashMap) by the MongoDB driver

Description

GC can slow down reads esp for collections. Many HashMap are created and we suspec the MongoDB driver for Java is the creator (DBObject is a subclass of LinkedHashMap).

We could imagine not create these BObject but directly talk to the BSON stream. That would of course be a lot of work to do that right and the MongoDB driver needs to expose BSON without parsing it first.

It more a prospective idea.

Environment

None

Status

Assignee

Sergey Chernolyas

Reporter

Emmanuel Bernard

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Minor