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

StringInterner: Ensure ends precedes buffer in memory #77

Open
Caellian opened this issue Nov 20, 2024 · 0 comments
Open

StringInterner: Ensure ends precedes buffer in memory #77

Caellian opened this issue Nov 20, 2024 · 0 comments

Comments

@Caellian
Copy link

As ends and buffer are separately stored, their relative positions can significantly drift away when a lot of strings are interned.

To fix this, their memory should be manually managed as a single growable allocation with two sections (for ends and contents).

This requires a rewrite and likely unsafe code but it would also fix this issue and remove the need to read from both pointers (instead it would be just one).

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

1 participant