Completed
Details
Assignee
UnassignedUnassignedReporter
Andy FingerhutAndy FingerhutLabels
Approval
OkPatch
CodePriority
MajorAffects versions
Fix versions
Details
Details
Assignee
Unassigned
UnassignedReporter
Andy Fingerhut
Andy FingerhutLabels
Approval
Ok
Patch
Code
Priority

Affects versions
Fix versions
Created November 16, 2013 at 1:01 AM
Updated October 13, 2015 at 3:37 AM
Resolved October 13, 2015 at 3:37 AM
The method PersistentArrayMap.without() first searches for a matching key using indexOf(key) and saves the result in i.
If a matching key was found, the code then copies the old array to the new smaller one, but unnecessarily repeats the comparison of every key in the map to the key being removed, even though its location is already stored in i.
Approach: Remove the unnecessary comparison.
Patch: clj-1295-2.patch
Screened by: Alex Miller