← All repos

mason

fleet-footed ByteString builder

Browse cluster: Haskell tooling and libraries
69commits
4contributors
2languages

Tech stack & purpose

Mason is a Haskell library that provides a fast, extensible builder for constructing ByteStrings. It is designed as a high-performance alternative to the standard bytestring Builder, offering significant speed improvements—often twice as fast or more—along with a lower memory allocation footprint. The library includes both a core API with additional features like socket writing and HTTP integration, and a compatibility layer for easier migration from existing code. Mason's architecture uses a generic, purpose-dependent design where builders are functions that operate on buffers in a single pass, allowing for creative extensions such as on-the-fly compression and efficient fusion of operations.

Languages

Haskell
82.1%
C
17.9%

Contributors