Skip to content

Text to integer fast path for small integers? #151

@oscbyspro

Description

@oscbyspro

I wrote some code for a comment on the forums. In doing so, I noticed two things:

  1. Parsing up to the first invalid character without failing entirely by returning nil might be useful.
  2. I may speed up small integer decoding by removing the arbitrary precision overhead for types that fit in one word.

This issue tracks the 2nd point. I'll want to measure it, but it should be a simple improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    brrrsuch code, much wow

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions