-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.0 -> 3.1.1 performance degradation #33
Comments
Hi! Thanks for bringing this up; this is quite a significant slowdown. After some basic profiling, it seems that the change to support TOML 1.0.0 caused a regression in date parsing performance: The issue is likely the try-catch snippet which essentially causes unnecessary operations: Lines 2011 to 2018 in 91e8fff
Changing it back to original Of course, supporting full TOML 1.0.0 spec causes a slight performance degradation that I cannot fully fix. I don't know about your testing setup, but on mine:
The fixed code now runs in |
Quite a big difference after replacing exceptions with |
https://github.com/bugproof/TomlLibrariesBenchmark
The text was updated successfully, but these errors were encountered: