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

boost::property_tree::read_json takes a long time #105

Open
WuDaWeiCTO opened this issue Mar 13, 2023 · 2 comments
Open

boost::property_tree::read_json takes a long time #105

WuDaWeiCTO opened this issue Mar 13, 2023 · 2 comments

Comments

@WuDaWeiCTO
Copy link

boost1.56.0 boost::property_tree::read_json takes a long time 16ms, and occasionally takes a short time 0ms

@mclow mclow transferred this issue from boostorg/boost Mar 13, 2023
@ashtum
Copy link
Collaborator

ashtum commented Nov 17, 2023

@WuDaWeiCTO, could you please provide more context for this? It could be an OS issue if you're attempting to read a JSON file from disk. Do you have a reproducible example code?

@nvkhoi112358
Copy link

I think boost add explicit Json since 1.75.0 https://www.boost.org/doc/libs/1_75_0/libs/json/doc/html/index.html
In my case, it is 4x faster.

JSON parser through ptree is a very bad idea.

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

No branches or pull requests

3 participants