
13 Mar
2007
13 Mar
'07
6 a.m.
Bulat Ziganshin wrote:
Hello Simon,
Friday, March 9, 2007, 7:44:46 PM, you wrote:
Looking at the implementation of DiffArrays, there are some obvious optimisations that aren't done.
.... and don't forget that it uses MVar instead of IORef to be thread-safe
I don't see any obvious optimisations there - some kind of thread-safety is essential. We could try IORef and atomicModifyIORef, but I doubt it would be much quicker, if at all. The other optimisations I mentioned are easy wins, though. Cheers, Simon