Toml-bench – Which toml package to use in Python?
github.comI was all ready with a rant about the premature optimization of worrying about the parsing speed of a configuration library with there's so many other important factors and the majority of use cases don't care about speed...
But this is a great post that covers the relative behaviors of the different parsing libraries and helps you evaluate the best _functional_ choice for your needs. Bravo!
The level of none compliance was actually pretty surprising to me. You're right speed is not really that important, realistically you're not going to have a large amount of TOML in any given project, nor are you going to read and write it constantly.
One issue I've run into is programs that have configuration language that looks a lot like TOML or INI format... yet it's neither. So a TOML or INI parser might be able to read and write the configuration files 90% or the time, but fail in strange ways in some edge cases.
That's a weird one for sure. I've seen config files which were valid TCL, I've seen JSON, I've seen bad old INI files... TOML is relatively new after all, but that too...
What I never understood are those who looked at all these options and said "No, I'll write my own parser!" instead...