Skip to content

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
@matcool matcool deleted the optimize branch February 9, 2026 18:46
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