python-poetry/tomlkit

Bottleneck parsing

yajo opened this issue · 0 comments

yajo commented

sample.txt

Parse this file. It takes a lot of time!

>>> import tomlkit
>>> tomlkit.__version__
'0.11.8'
>>> import timeit
>>> with open("sample.txt") as fd:
...     timeit.timeit('tomlkit.load(fd)', globals=locals())
... 
10.397179616000358