-
Notifications
You must be signed in to change notification settings - Fork 11
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
[v2.0.0] Add benchmarks to allow for proper profiling #12
Comments
Hm that's an interesting profile. I did one about a week ago and it actually showed that |
As expected, using a |
A basic benchmark shows that using a sorted `std::set` instead of a raw, unsorted `std::vector` improves entry lookup times as well as VDF merge times by up to 90x. While this commit does introduce a bunch of `const_cast`s, they are mostly guarded by deprecation warnings and unless `vdf_entry::name` is touched, they should still be safe.
@Try I'm keeping a bleeding-edge version of OpenGothic with the newest patches at lmichaelis/OpenGothic in the |
Updated OpenGothic - very nice improvement of load-time performance, thanks! |
There is probably a lot of performance left on the table at the moment since it is not really possible to profile most parts of phoenix. Especially the script VM is critical to performance in Gothic re-implementations like OpenGothic.
Writing proper benchmarks will enable easier profiling of phoenix.
The text was updated successfully, but these errors were encountered: