[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: File avoid_map_lookups.diff    

 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.
in the future - the easiest way to submit patches is forking on gihub.
then its a 1 click approve/patch

Comment by auto [ 21/Dec/09 ]

Author:

{'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: avoid unnecessary map lookups JAVA-69
http://github.com/mongodb/mongo-java-driver/commit/e69e2e5e1857d115cf032c5f01bdca4193259e48

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