Skip to content
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

Rethink TOML format for library #9

Closed
yuvadm opened this issue Oct 8, 2019 · 1 comment
Closed

Rethink TOML format for library #9

yuvadm opened this issue Oct 8, 2019 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@yuvadm
Copy link
Member

yuvadm commented Oct 8, 2019

Attempting to create a large-ish TOML file (~4MB) results in unreasonable parsing times (toml-rs/toml-rs#342)

Unless the cause of this issue is found and resolved, we might need to rethink the TOML design. Two possible ways to do that:

  1. Use another deserialization format that can be parsed faster. This solution might have usability issues since TOMLs are pretty nice.
  2. Compile the library (nightly? on demand on the user machine?) into some intermediate representation that can be efficiently parsed in runtime.
@yuvadm yuvadm added bug Something isn't working enhancement New feature or request labels Oct 8, 2019
@yuvadm yuvadm added this to the v1.0 milestone Oct 8, 2019
@yuvadm yuvadm self-assigned this Oct 8, 2019
@yuvadm
Copy link
Member Author

yuvadm commented Oct 26, 2019

This PR toml-rs/toml-rs#349 looks super promising, testing it on branch https://github.com/streamlib/streamlib/tree/toml-performance shows amazing results that are definitely acceptable

@yuvadm yuvadm closed this as completed in a82c4ba Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant