[JAVA-165] Unnecessary calls to containsKey Created: 14/Sep/10 Updated: 29/Oct/10 Resolved: 28/Oct/10 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Performance |
| Affects Version/s: | 2.1 |
| Fix Version/s: | 2.3 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Hans Meiser | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
If there is an array of objects method objectStart() in DBCallback resets _lastArray |
| Comments |
| Comment by auto [ 28/Oct/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: fix stack handling in DBCallback |
| Comment by Hans Meiser [ 25/Oct/10 ] |
|
If we have a:[ {x:1}, {x:2}] objectStart(true,'a') --> _lastArray==true In the method objectDone there is a check for _lastArray==false but _lastArray is false for all documents within an array. public Object objectDone(){ return o; would become if(o instanceOf List) { |
| Comment by Eliot Horowitz (Inactive) [ 25/Oct/10 ] |
|
Can you explain a bit more. |