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

Suggestion: Add immutable string #225

Open
dubek opened this issue Apr 7, 2016 · 1 comment
Open

Suggestion: Add immutable string #225

dubek opened this issue Apr 7, 2016 · 1 comment

Comments

@dubek
Copy link
Contributor

dubek commented Apr 7, 2016

It seems that using a Rope data structure is efficient for string operations. Maybe holding string parts in a Hamster::Vector achieves the same tree-like idea?

Before starting any implementation, I started this issue as a place for discussion.

@alexdowad
Copy link
Contributor

Sounds like a good idea, though a dedicated implementation (perhaps based on Hamster::Trie) would be better than relying on Vector.

The first thing would be to come up with a POC and see if the performance advantage over just using frozen strings is compelling.

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