File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -12816,10 +12816,12 @@ reduces them without incurring seq initialization"
1281612816 i (scan-array-equiv 2 k new-bucket)]
1281712817 (aset new-hashobj h new-bucket)
1281812818 (if (some? i)
12819- (do
12820- ; found key, replace
12821- (aset new-bucket (inc i) v)
12822- (HashMap. meta count new-hashobj nil ))
12819+ (if (identical? v (aget new-bucket (inc i)))
12820+ coll
12821+ (do
12822+ ; found key, replace
12823+ (aset new-bucket (inc i) v)
12824+ (HashMap. meta count new-hashobj nil )))
1282312825 (do
1282412826 ; did not find key, append
1282512827 (.push new-bucket k v)
@@ -12958,7 +12960,10 @@ reduces them without incurring seq initialization"
1295812960
1295912961 ICollection
1296012962 (-conj [coll o]
12961- (Set. meta (assoc hash-map o o) nil ))
12963+ (let [new-hash-map (assoc hash-map o o)]
12964+ (if (identical? new-hash-map hash-map)
12965+ coll
12966+ (Set. meta new-hash-map nil ))))
1296212967
1296312968 IEmptyableCollection
1296412969 (-empty [coll] (with-meta (. Set -EMPTY) meta))
You can’t perform that action at this time.
0 commit comments