[Pharo-users] Dictionary removeKey: very low

LABORDE Pierre pierre.laborde at fr.thalesgroup.com
Mon Feb 3 05:17:38 EST 2020


Hi all,

I have a problem with Dictionaries :

dic := Dictionary new: 10000.

1 to: 10000 do:[ :i |
            dic at: i put: i printString.
].

1 to: 10000 do:[ :i |
            dic removeKey: i.
]

Removing each keys is very slooow, time execution difference between add and remove is crazy.
Any idea for fix that ? Can I use another Dictionary implementation or settings ?

Thanks.

Pierre

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20200203/29e36e73/attachment.html>


More information about the Pharo-users mailing list