-
Notifications
You must be signed in to change notification settings - Fork 2
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
poor performance #2
Comments
After trying to get rid of shared_ptr and create a garbage collector the performance is still very bad. |
Ok, this issue is finally resolved. Q# now offers manual memory management or the Boehm-Demers-Weiser garbage collector. |
Performance is still an issue. |
@pquiring this project is Just the birth begin soon ,the Performance is not the point |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The purpose of this project was to create something managed like Java/C# but faster. Short anwser : it's slower.
How could C++ be slower than Java? This prompted me to do some performance tests, and generally C++ code is slower than Java. Only C code was faster.
For this simple example, C/C++ code is slightly faster:
But when I did more object oriented code, Java was faster:
Even when I did a simple test with std C++ objects with highest optimization, it was slower than Java.
When I replaced std objects with simple defined objects and even wrote a simple string compare function instead of the C strcmp() function, only then did the C++ code out perform Java.
The text was updated successfully, but these errors were encountered: