Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cowstrings #49

Closed
planetis-m opened this issue May 5, 2022 · 0 comments
Closed

cowstrings #49

planetis-m opened this issue May 5, 2022 · 0 comments
Assignees

Comments

@planetis-m
Copy link

planetis-m commented May 5, 2022

Name: cowstrings

Author: planetis

Posting: 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 it's 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants