puppetlabs/puppet — pull request #935 by daniel-pittman (2012-07-15 06:43:12+00:00)
Title: ZAML/YAML performance and correctness fixes

Using the ZAML encoder for output kept showing up as a hot-spot in my testing. With some investigation I found that the majority of the time was spent working on string output - which isn't such a shock, given we have tens of thousands of them in the average catalog.

While improving performance there I stumbled across some correctness problems, including corruption of the output stream when long binary data was emitted - a bug I introduced a while back, so it feels good that I caught it and fixed it now.