str_stack 0.1.0

A string allocator for allocating many write-once strings. This library is primarily useful for parsing where you need to repeatedly build many strings, use them, and then throw them away. Instead of allocating many independent strings, this library will put them all in the same buffer.
Documentation

StrStack

Linux: Build Status

A string allocation library. This is primarily useful when you want to allocate a bunch of small strings, use them, and then destroy them all together.

Documentation

https://stebalien.github.com/str_stack/str_stack/

Performance

  • Allocation: ~2.5x speedup (for 1000 strings) (~42ns per string)
  • Indexing: 0.73x speedup (slower) (~1.7ns per index)
  • Iterate: 0.35x speedup (much slower) (~1ns per iteration)