-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#12] vdfs: improve VDF lookup times drastically
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.
- Loading branch information
1 parent
32770f8
commit 604b61b
Showing
4 changed files
with
144 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters