This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add generated changelog entries * Faster coalescing supplier This is a moderate improvement on the present coalescing supplier. Won't describe present state of the world, but the new implementation hopefully describes the algorithm better. For each round, either we are the first to arrive (execute and return) or we are not. In the case we are not, we await the current round ending and then perform the check again. If not this time, we wait for the executor to finish and return their result. The improvement is modest - with 16 threads looping and a task that takes 2ms (the benchmark) we see throughput of 6886 +- 73 operations per second. With this change, we see a result of 7232 +- 89 operations per second. While the change is minimal, the result is closer to optimal; 16 / 0.002 = 8000 as perfect (which we can never really achieve in such a benchmark). * Make more simple * Add generated changelog entries * Cleaner still * imports * Fix the bugs * Oops * Fixes * Make the benchmark parallel * Remove the benchmark * Add generated changelog entries * PR comment
- Loading branch information
1 parent
49fc1e4
commit 0708514
Showing
2 changed files
with
46 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: improvement | ||
improvement: | ||
description: More predictable coalescing supplier | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/4508 |