turn off let floating

Tomasz Zielonka t.zielonka at students.mimuw.edu.pl
Thu Apr 15 11:16:47 EDT 2004

On Thu, Apr 15, 2004 at 01:52:38PM +1000, Bernard James POPE wrote:
> However, if you have any suggestions about how to make a FAST global counter
> I would be very glad to hear it. From profiling it seems like this code
> is a little expensive (also it is called quite frequently).

Well, I'm not Simon, but I would suggest to change the line with
writeIORef to:

                       writeIORef count $! newCount

Best regards,

.signature: Too many levels of symbolic links

More information about the Glasgow-haskell-users mailing list