[Haskell-cafe] Optimising UTF8-CString -> String marshaling, plus comments on withCStringLen/peekCStringLen

Alistair Bayley alistair at abayley.org
Fri Jun 8 05:50:24 EDT 2007


> You're right, both versions should give the same code.  Which version of GHC are you using?  Both with the HEAD and with 6.6.1 I get the nice unboxed code with the `seq` version too.  My test program is below.

I'm using 6.6, so I'll upgrade to 6.6.1 and retest. Preusmably you're
only interested if this behaviour persists in 6.6.1. I'll check both
cases and make a test cases for them if necessary.


More information about the Haskell-Cafe mailing list