jeroenooms/jsonlite — pull request #34 by kevinushey (2014-09-10 06:13:11+00:00)
Title: Build on @wch's work with a faster escaper

This avoids the initial runthrough counting matches to allocate an exact length, and instead overallocates up to the maximum possible length. Testing shows this to be ~2-3x faster.