Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/planetis-m/cowstrings
Copy-On-Write string implementation according to nim-lang/RFCs#221
https://github.com/planetis-m/cowstrings
copy-on-write cow datatype nim nim-lang optimization string
Last synced: 3 months ago
JSON representation
Copy-On-Write string implementation according to nim-lang/RFCs#221
- Host: GitHub
- URL: https://github.com/planetis-m/cowstrings
- Owner: planetis-m
- License: mit
- Created: 2021-07-22T09:16:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T12:50:41.000Z (4 months ago)
- Last Synced: 2024-07-22T15:14:17.819Z (4 months ago)
- Topics: copy-on-write, cow, datatype, nim, nim-lang, optimization, string
- Language: Nim
- Homepage:
- Size: 68.4 KB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: readme.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-nim - cowstrings - Copy-On-Write string implementation according to nim-lang/RFCs#221. (Text / String Types)
README
====================================================
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 `_. 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.