I Wrote a String Type

In this web content, the author discusses their experience writing compilers and parsers. They explain their approach to memory optimization in parsing strings with escapes. The author introduces their library, called byteyarn, which provides a highly optimized string type called a “Yarn.” They highlight the unique properties of Yarn, including being two pointers wide, supporting small string optimization, and the ability to handle borrowed or owned buffers. The author also explores niche optimization and the implementation details of Yarn. Overall, the content provides valuable insights into memory optimization techniques in parsing and string representation.

https://mcyoung.xyz/2023/08/09/yarns/

To top