Skip to content

For extended JSON, switch on first characters #2

@xdg

Description

@xdg

Currently, the code switches on the length of an extended JSON key and then does a linear scan for key equality to dispatch. In most cases, the first letters are different (e.g. $code $date $type) and we could switch on the first letter after the $. That might be faster than chained if-else comparisons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions