#Performance of Set vs Add

1 messages · Page 1 of 1 (latest)

green dome
#

because internally it's a treemap

#

and treemaps aren't very good at telling you how long they are

#

however, the team is aware and i think have some plan to fix it

#

basically, add has to loop over the whole list until it finds an open spot

#

set just has to write a single entry