Y
Hacker News
new
|
ask
|
show
|
jobs
by
onionisafruit
1095 days ago
There were compiler optimizations for clearing by iterating. I haven’t looked at the code, but I suspect this won’t be much more efficient than iterating was with the optimizations.
1 comments
yencabulator
1095 days ago
I expect both will result in the same code; the only difference is that the clear built-in can handle maps with NaN keys.
link