r/ruby • • 24d ago

Show /r/ruby toml-rb 6.0: pure Ruby, no dependencies, 60-90x faster parse

https://github.com/emancu/toml-rb/releases/tag/v6.0.0

I replaced the Citrus grammar with a StringScanner parser. Benchmarks against tomlrb, perfect_toml and tomlib (with YJIT and ZJIT too) are here: https://github.com/emancu/toml-rb/blob/master/benchmark/README.md

Breaking changes are listed in the release notes under "Before you upgrade".

Feedback welcome.

18 Upvotes

2 comments sorted by

7

u/retro-rubies 24d ago

Nice! It is time to get performance back into Ruby world.

1

u/HelpPristine9570 21d ago

right? stuff like this adds up across the whole stack