Improving Data.Char.isSpace performance
mail at joachim-breitner.de
Thu Nov 1 14:24:29 CET 2012
have you considered investigating whether the ffi call can be sped up?
To me it seems to be a bit overheady to first check in Haskell-Land for
common cases and then call code that would (or does?) this check as
Maybe the overhead for calling the C code can be reduced so that it is
no longer worth doing special casing in the Haskell code. Maybe using
primitive operations instead of the C calling convention help, as it
would effectively inline the call to u_iswspace?
Joachim "nomeata" Breitner
mail at joachim-breitner.de | nomeata at debian.org | GPG: 0x4743206C
xmpp: nomeata at joachim-breitner.de | http://www.joachim-breitner.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part
More information about the Libraries