anilmaurya / fast_jsonparser

Fastest Json parser for Ruby, wrapper for simdjson
MIT License
306 stars 10 forks source link

Use a switch/case rather than if/else #6

Closed casperisfine closed 4 years ago

casperisfine commented 4 years ago

Can't see any difference on the existing benchmarks, but in theory using a switch/case open up to more compiler optimizations (e.g. jump table etc).

anilmaurya commented 4 years ago

Thanks 👍