The blaze-builder library provides an abstraction of buffered output of byte streams and several convenience functions to exploit it. For example, it allows to efficiently serialize Haskell values to lazy bytestrings with a large average chunk size. The large average chunk size allows to make good use of cache prefetching in later processing steps (e.g. compression) and reduces the sytem call overhead when writing the resulting lazy bytestring to a file or sending it over the network.<div>
<br></div><div>Note that blaze-builder was inspired by the Data.Binary.Builder module provided by the binary package. It was originally developed with the specific needs of the blaze-html package in mind. Since then it has been restructured to serve as a drop-in replacement for Data.Binary.Builder, which it <i>improves upon both in speed as well as expressivity.</i></div>
<div><br></div><div>See the following blog-post for more details:</div><div><br></div><div><a href="http://lambda-view.blogspot.com/2010/11/blaze-builder-library-faster.html">http://lambda-view.blogspot.com/2010/11/blaze-builder-library-faster.html</a></div>
<div><br></div><div>best regards,</div><div>Simon Meier</div><div><br></div>