Skip to content

Consider switching from ShortText to Text #14

Description

@andrewthad

Now that the text-2.x series has been out for a while, it's worth benchmarking to figure out what happens if we switch away from ShortText. I would expect that decode speed should improve in situations where most strings do not use escape sequences. This should happen because we would be performing a smaller number of bytearray allocations (an out-of-line primop), trading those in for known-sized allocations (which are lowered to code with a hot path that doesn't call another function). This will break the API, but I'm going to go ahead and get helper functions to ease this transition.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions