[JAVA-69] [patch] avoid unnecessary map lookups Created: 20/Dec/09 Updated: 13/Jan/10 Resolved: 21/Dec/09 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 1.1 |
| Fix Version/s: | 1.2 |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Dave Brosius | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
Code loops over maps and fetches the value for each key in the map based on the keySet. This is unnecessary lookup, as you can just use the entrySet to get both key and value at the same time. Patch fixes this. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 21/Dec/09 ] |
|
thanks. |
| Comment by auto [ 21/Dec/09 ] |
|
Author: {'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: avoid unnecessary map lookups |