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

Optimize parsing #19

Merged
merged 5 commits into from
Dec 14, 2024
Merged

Optimize parsing #19

merged 5 commits into from
Dec 14, 2024

Conversation

matcool
Copy link
Member

@matcool matcool commented Dec 14, 2024

compared to nlohmann this library was 2x slower, now its about equal

key lookup is still O(n) but i'll leave that for another time

this prevents vector reallocation using the copy constructor, which is
much more expensive
iostreams seem to really slow down parsing, in the case of if you
already have the string in memory and dont need to read it from a file
@matcool matcool merged commit 82b1552 into main Dec 14, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant