sw5cc / SuperString

A fast and memory-optimized string library for C++

Home Page:https://www.boutglay.com/SuperString

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SuperString

SuperString is an efficient string library for C++, that achieves a remarkable memory and CPU optimization.

SuperString uses Rope (data structure) and game theory techniques.

alt text

This two plots show the comparison between SuperString and std::string in term of memory consumption and number of executed instructions to perform the some task, split a text (209 Ko, 5000 lines, 209166 characters) into lines and push them into an std::vector.

Features

  • Fast and Memory-optimized.
  • Automatically garabage collected.
  • Support ASCII, UTF-8, UTF-16BE and UTF-32.
  • Rich API.
  • Easy to integrate and use.
  • MIT Licence

Roadmap

  • Optimize even more (I think it's possible 😎)
  • Support for LE version of UTF-16 (UTF-16LE)
  • Enrich test and benchmark case, compares with existing Rope and other libraries
  • Test on Windows and other platforms
  • Test on multithreaded environment

Documentation and API

Visit documentation page

Contribute and support

You have any feature idea, a bug to correct or an improvement, feel free to open a issue or send your pull request.

You can also support the author of SuperString via Patreon or Paypal.

LICENCE

MIT LICENCE

About

A fast and memory-optimized string library for C++

https://www.boutglay.com/SuperString

License:MIT License


Languages

Language:C++ 99.5%Language:CMake 0.5%