
21 Jun
2009
21 Jun
'09
9:44 p.m.
What are the keys in your Map? Strict ByteStrings?
And you're using ghc 6.10.x?
For the record, I use 6.10.1 and strict ByteString everywhere now. I used to have some lazy IO with vanilla strings, but switching to Data.ByteString.Char8.readFile didn't change the time at all. The big.txt is about 6megs. Profiling output says there are about 100 000 000 entries for the lookup function. http://patch-tag.com/r/spellcorrect/snapshot/current/content/pretty