[Glass] IdentityKeyValueDictionary vs IdentityDictionary?

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Fri Mar 10 07:34:29 PST 2017


Reading the class comments of the two classes and poking around in the 
implementation, it looks like IdentityKeyValueDictionary does not use 
associations when adding entries to the dictionary and 
IdentityDictionary creates associations ... so i seems that adding 
entries would always be more expensive for IdentityDictionary...

Dale


On 3/8/17 10:51 AM, Mariano Martinez Peck via Glass wrote:
> Hi guys,
>
> I was measuring performance of different dictionary classes for a 
> given scenario and I still cannot understand the difference 
> between IdentityDictionary and IdentityKeyValueDictionary.
>
> For this particular case (where I was measure #at:put:) the later was 
> much faster. Is that always the case? Because I normally use 
> IdentityDictionary everywhere for identity based dictionaries.
>
> Thanks in advance,
>
>
>
>
>
> -- 
> Mariano
> http://marianopeck.wordpress.com
>
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170310/06eb9464/attachment.html>


More information about the Glass mailing list