No description
Find a file
2024-10-08 00:07:09 +03:00
tests add comparisons tests 2024-07-22 15:38:34 +03:00
.gitignore first 2022-02-09 17:27:08 +02:00
LICENSE first 2022-02-09 17:27:08 +02:00
readme.rst add iterators 2022-05-06 09:55:27 +03:00
ssostrings.nim Thanks to @demotomohiro for the suggestion 2024-10-08 00:07:09 +03:00
ssostrings.nimble prepare 2024-07-18 06:46:11 +03:00

====================================================
          Small String Optimized String
====================================================

The Small String Optimized (SSO) string data-type attempts to reduce the number
of heap allocations that happen at runtime. If a string is less than 23 bytes
on 64bit it can be stored directly in the object, avoiding a dynamic allocation.
There exist two modes for each String, a short string - and a long string mode
in which the dynamic memory is managed using Nim's destructors. The
implementation is based on clang's std::string class. This technique might
improve runtime performance and reduce fragmented memory where this is most
needed i.e. on embedded systems.