[Haskell-cafe] Optimization with Strings ?
bulat.ziganshin at gmail.com
Thu Dec 3 07:32:48 EST 2009
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
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe