-
Notifications
You must be signed in to change notification settings - Fork 1
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
Run benchmarks with rtoml v0.11? #7
Comments
It's incredibly fast! See updated README.md |
Nice! Any chance you could include the benchmark example from cpptoml like you used to, even if that package has been removed? Multiple benchmark cases are useful. |
It's removed because there's a case that cannot be loaded by rtoml. I will give more details later. |
I found the culprit. It's the item here that when loaded, can't be dumped again with rtoml: [terrible.capable-tent.wilderness-aromatic.birds.naughty-blind]
bake-scatter-cross = [
234,
{ attempt-selfish-ghost = 08:43:45, draconian-ski-scintillating = 1911-03-24T12:01:06-01:20, dreary = 266 },
'innocent broken equable adhesive spiritual title respect'
] # hard-to-find protective
ticket-enthusiastic-delightful = [ 428, 12:49:26, [ 07:10:40, 'neck unadvised finicky stale rest', true ] ] This is the error:
A simple way to reproduce: import rtoml
toml = """
[a]
b = [234, { c = 1, d = 2, e = 3}, 'abc']
f = [345, "def", [4, "ghi", 456]
"""
loaded = rtoml.loads(toml)
rtoml.dumps(loaded) Error:
|
thanks, I'll look into it. But that's not new, does that mean they've changed their examples? |
That's wired. The file was created 2 years ago. Should I refer this to a new issue in rtoml repo? I think it fits better there. |
yes please. |
I'd love to see how rtoml v0.11 (specifically samuelcolvin/rtoml#78 where the GIL pool was removed from pyo3) effects performance.
The text was updated successfully, but these errors were encountered: