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

String views #116

Open
KCreate opened this issue Aug 31, 2022 · 0 comments
Open

String views #116

KCreate opened this issue Aug 31, 2022 · 0 comments

Comments

@KCreate
Copy link
Owner

KCreate commented Aug 31, 2022

  • Implement a new StringView type to efficiently create substrings of another string
  • StringView stores a reference to the original string, a starting offset and a length
  • Come up with some heuristics on how to decide when to create a string view and when to just create a copy.
  • GC could create copies if it is determined that the original string is no longer needed and only accessed through views.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant