[MLton] Re: [MLton-user] How to write performant network code

Henry Cejtin henry.cejtin at sbcglobal.net
Wed Jan 7 10:31:20 PST 2009


I  certainly am not arguing against calling memcpy(), but note that for small
chunks of memory, the overhead of the the extra call to C (including  passing
parameters  on the stack) could slow things down.  Still, probably the way to
go.

For large copies, it can often be worth while checking the alignment and then
moving a word at a time.

I don't have any idea on the hashing problem.



More information about the MLton mailing list