andersfugmann/msgpack-ocaml — pull request #1 by jj-issuu (2014-06-02 18:29:43+00:00)
Title: Prevent stack overflow with tail-recursive map

Without this change, a stack overflow happens when packing a 10M long
list of char. The fix is to replace calls to List.map with a
tail-recursive version. Test case included.