Scott is right, storing/comparing/hashing symbols is probably all done on 
the pointers, so it's as efficient as you can hope for.

On Tuesday, August 16, 2016 at 11:44:46 AM UTC-4, Oliver Schulz wrote:
>
> Hi,
>
> I was thinking of using Symbols as keys in a Dict{Symbol,Int64}, instead 
> of Strings. However, Symbol is not a bitstype, so there I guess there will 
> still be a lot of individual memory allocation when working with such a 
> Dict, right?
>
> Actually, why isn't Symbol a bitstype (according to 
> https://github.com/JuliaLang/julia/issues/5880, symbols are not GCed)?
>
>
> Cheers,
>
> Oliver
>
>

Reply via email to