I wrote some code for a comment on the forums. In doing so, I noticed two things:
- Parsing up to the first invalid character without failing entirely by returning nil might be useful.
- 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.