Skip to content

StringBackend: ensure ends precedes buffer in memory #77

Description

@Caellian

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions