[SERVER-8941] Unify JavaScript lazy and eager object conversion logic Created: 11/Mar/13 Updated: 14/Apr/16 Resolved: 01/Feb/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 2.4.0-rc2 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Ben Becker | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
There is currently a lot of duplicated code in mongoToV8(), mongoToLZV8() and mongoToV8Element(). We should unify this code. It may also be worth implementing a more efficient lazy loading technique (e.g. use eager loading if the object is small enough or has been accessed some number of times). |
| Comments |
| Comment by Mira Carey [ 01/Feb/16 ] |
|
The v8 integration has been removed and most of that kind of duplication was centralized in the spidermonkey implementation |