Giter VIP home page Giter VIP logo

superstring's Introduction

SuperString

SuperString is an efficient string library for C++, that achieves a remarquable 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 environement

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

superstring's People

Contributors

btwael avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.