[hibernate-issues] [Hibernate-JIRA] Created: (OGM-167) Consider reading/writing directly from BSON straem to Tuple to limit unnecessary object creation (like HashMap) by the MongoDB driver

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu May 3 04:55:49 EDT 2012


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

                 Key: OGM-167
                 URL: https://hibernate.onjira.com/browse/OGM-167
             Project: Hibernate OGM
          Issue Type: New Feature
          Components: datastore
            Reporter: Emmanuel Bernard
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list