-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release write_guard lock when no longer required (#2716)
* Release write_guard lock when no longer required * Use move constructor for write_guard * Increase maximum values for various settings * Formatting * Remove unnecessary extra space in comment * Update slow_tests * Fix slow_test check * Dynamically set batch_write_size based on previous write performance. Change is gradual to account for random spikes/slowdowns. * Add a tolerance in case amount to cement is just above to save waiting on block processor for small amount of blocks * Reduce batch_write_size in slow_tests now that it's configurable so that it takes less time * Don't call release if there's no blocks which were cemented at the end * Typo in comment (thanks Gui) * Prevent yoyoing as much * (Unrelated) Fix prioritize_frontiers_overwrite test * Increase amount of time spent searching for frontiers when there is a low amount of active transactions * Have a force_write in unbounded to be consistent with bounded which is based on blocks * Typo in comment * Modify heuristics for updating active multiplier (Gui comment) * Give magic number a variable (gui) * Fix incorrect comparison (Gui) * Add public function to determine if write_guard is owned and use that (Gui)
- Loading branch information
Showing
11 changed files
with
196 additions
and
81 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
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
Oops, something went wrong.