No description
Find a file
2024-10-08 00:06:55 +03:00
tests remove 2024-07-22 15:50:38 +03:00
.gitignore Initial commit 2021-07-22 12:16:40 +03:00
cowstrings.nim Thanks to @demotomohiro for the suggestion 2024-10-08 00:06:55 +03:00
cowstrings.nimble prepare 2024-07-18 06:47:10 +03:00
LICENSE Initial commit 2021-07-22 12:16:40 +03:00
readme.rst update readme 2022-05-05 18:56:01 +03:00

====================================================
               Copy-On-Write String
====================================================

Copy-On-Write string data-type provides an implementation of mutable strings so
that creating and copying them is free, performance wise. The object's internal
memory is reference counted and shared among instances. Thus it only make a
copy for a specific instance, when it's data is modified. It is based on
`nim-lang/RFCs#221 <https://github.com/nim-lang/RFCs/issues/221>`_. It should
improve performance when strings are frequently copied. Passing a string to a
thread triggers a deep copy, so it is compatible with multi-threading.