
3 Dec
2009
3 Dec
'09
7:32 a.m.
Hello Emmanuel, Thursday, December 3, 2009, 3:03:02 PM, you wrote:
memory footprint and is easier. But I don't know if it worth to do this optimization: having a dictionary to translate string words in Int.
GHC compiler already has this optimization. unfortunately it's not in the code it generates but in compiler itself (GHC is written in Haskell and compiled by itself). so it is definitely worth an implementation if you handle lots of strings as compiler does -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com