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
json::serialize takes an extraordinary amount of time on clang / libc++ #697
Comments
The problem is clearly linked to libc++, because I cannot reproduce it unless I add |
What is the See:
|
I use |
libc++ |
|
And no leaks reported (valgrind)
|
Fixed in 5ca4fb3 |
PLEASE DON'T FORGET TO "STAR" THIS REPOSITORY :)
When reporting a bug please include the following:
Version of Boost
1.79
Steps necessary to reproduce the problem
Compile the linked program https://github.com/madmongo1/json-bug-1
with:
clang 13
-stdlib=libc++
All relevant compiler information
clang 13
-stdlib=libc++
Run the executable in the same directory as the bundled log file
demo.log
.The program reads one line of text from the file, parses it to json and then serialises the json value back to a string.
With GCC, the serialisation is instantaneous.
With clang (in both debug and release configurations), the parsing is instantaneous, but the serialisation takes many minutes.
It does make progress, but incredibly slowly. I have waited 5-10 minutes. In that time, the program was only able serialise approx 140k of text.
The text was updated successfully, but these errors were encountered: