Skip to content

Releases: jnordwick/zig-string

Initial Proof of Concept for Small String Optimization in Zig

09 Apr 09:59
Compare
Choose a tag to compare

This is just a small trial release. The API needs some clean up, but this will be used in the coming months for some hash keys and logging values and I'll wait until real world use to figure out how to clean it up. Right now it relies on the caller getting the slice (and it provides a number of methods for that) and calling the std.mem functions. This is usually fine, but there are some instances I can already see where they should be integrated into the String itself (eg, you want to split on multiple indexes it would be a pain to crate an array of them instead of having a split routine in the string). Those will probably be added in some way when needed.