[JAVA-422] Memoize field locations (and other calculated data) for LazyBSONObject Created: 23/Aug/11  Updated: 19/Oct/16  Resolved: 24/Oct/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.7

Type: Improvement Priority: Minor - P4
Reporter: Brendan W. McAdams Assignee: Brendan W. McAdams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

We tend to actually iterate the field set several times while looking for a particular field. It would make sense to memoize any data we find for later fetches.



 Comments   
Comment by auto [ 30/Aug/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-422 - Test / validate foreach iteration of document keyset
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/6d861b881220b133276c3dc4c56f35c6ee1aec9e

Comment by auto [ 29/Aug/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-422 - Remove ill advised intern() calls
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/35ebe240754ae708ba919b337e871912c8979e59

Comment by auto [ 23/Aug/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-422 - Memoize field locations (and other calculated data) for LazyBSONObject

Comment by auto [ 23/Aug/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-422 - Memoize field locations (and other calculated data) for LazyBSONObject

Generated at Thu Feb 08 08:52:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.