pwwang / toml-bench

Which toml package to use in python?
MIT License
50 stars 1 forks source link

Add `tomllib` as a toml parser from python 3.11 #3

Closed pwwang closed 1 year ago

pwwang commented 1 year ago
    Cool, although that's not quite what I meant.

I was suggesting adding the tomllib toml parser that's included in the python standard library from 3.11 to the libraries benchmarked, so it's performance can be compared.

Originally posted by @samuelcolvin in https://github.com/pwwang/toml-bench/issues/2#issuecomment-1312160438

pwwang commented 1 year ago

@samuelcolvin Added.

See https://github.com/pwwang/toml-bench/blob/master/reports/with_python3.11.md

I didn't put the report in README.md, as not all the packages support python 3.11 yet (pytomlpp does not), but add a link to it in Other Reports section instead.

Let's see if we can put it in README.md in the future.

samuelcolvin commented 1 year ago

Awesome, tomllib is quite impressive for a pure python implementation.

pwwang commented 1 year ago

Yes, it is. I think the idea is from tomli and probably implemented by tomli's author as well.