-
Notifications
You must be signed in to change notification settings - Fork 79
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
Simple programs run for many seconds #765
Comments
I can't reproduce this issue. The live version on the website takes a couple of seconds to load (no matter the file), but after that your example is instantaneous. |
Is C++ compiled version instantaneous for you on simple scripts? |
It takes around 350ms. |
Simple program takes ~22 sec on FreeBSD:
|
Some functions are called 1.5+ billion times, and many functions are called over 500 million times. C++ library is different on FreeBSD, this might have causes the compiler to interpret some code differently. |
I am pretty sure that there is a C++ problem in the code. Maybe some shared_ptr is copied often when this isn't needed - passing by address usually suffices. |
I think all you need to do is:
|
This solved the problem. But why isn't this done in the course of normal build? |
Prerequisites
or feature requests.
Description
Simple type programs run for many seconds. For instance, this example runs for many seconds both on the website and when run from the terminal.
Versions
Version: 3.48.0
The text was updated successfully, but these errors were encountered: