[Haskell-cafe] Understanding allocation behavior
Bulat Ziganshin
bulat.ziganshin at gmail.com
Sun Apr 9 13:23:59 EDT 2006
Hello David,
Sunday, April 9, 2006, 5:47:03 PM, you wrote:
> In an email to me, Jean-Philippe Bernardy expressed a concern that a
> large table could needlessly fill the data cache. He proposed
> checking 4 bits at a time and using a small table of 16 elements.
> Not surprisingly, it isn't as fast. I wonder what you think of
> this. Also, I wonder what would be a good test to demonstrate this
> possible interaction with the cache.
it depends on the actual task, CPU and other programs running at the
same time :) i just can say that it will be better to use array of
Word8 (with `fromIntegral` for conversion) and use `unsafeAt` for indexing
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list