Hello John,

Monday, December 22, 2008, 5:15:46 PM, you wrote:

>> And in general we would not even bother with considering using "unsafe"
>> for calls that are already expensive. It's only worth considering when
>> the length of the call is always very short.

the other way to look at it is to measure overhead of safe call.

on 1 GHz Duron i measured 66.000 calls of trivial safe function per
second, meaning 16.000 cpu ticks per call (ghc 6.8). it's rather large
overhead for many trivial functions, but for calls to sql engine it
seems rather small


-- 
Best regards,
 Bulat                            mailto:bulat.zigans...@gmail.com

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to