You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that json5 was taking many minutes to parse a single 180KB json file, which caused me to write up a benchmark-ish app which deserializes the following struct:
And with more complicated structures like the following, the disparity in --debug is much, much greater (such as an hour vs. seconds to parse the same file):
I found that
json5
was taking many minutes to parse a single 180KB json file, which caused me to write up a benchmark-ish app which deserializes the following struct:with the
items
being 100-char strings, varying in number from 10 to 1,000,000, using bothserde_json
andjson5
.With
cargo run --release
, I get the following results:But when running in --debug, it's much worse:
And with more complicated structures like the following, the disparity in
--debug
is much, much greater (such as an hour vs. seconds to parse the same file):times are from a 2015 MacBook Pro, running rustc 1.52.1 (9bc8c42bb 2021-05-09)
The text was updated successfully, but these errors were encountered: