mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
reduce object allocation in __update
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ class Hash
|
||||
end
|
||||
|
||||
def __update(h)
|
||||
h.each{|k,v| self[k] = v}
|
||||
h.each_key{|k| self[k] = h[v]}
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user