Dynamic Map

Bulat Ziganshin bulatz at HotPOP.com
Mon Oct 17 05:34:54 EDT 2005


Hello Bjorn,

Monday, October 17, 2005, 11:48:10 AM, you wrote:

BB> You could use unsafePerformIO, if it doesn't make you feel dirty.

BB> Here's what I do to achieve sharing of strings when parsing large files:

BB> It seems to work, but if any GHC gurus notice any problems, please let
BB> me know. OT: This one feels pretty fast, does anyone have a more 
BB> efficient implementation?

something like it is done in ghc compiler itself :))) see FastString.lhs



-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Glasgow-haskell-users mailing list