-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(bb): simplify parallel_for_if_effective (#8079)
The chunkiness of `run_loop_in_parallel_if_effective` was getting in the way of doing polynomial refactor passes for structured polynomials. - Renamed parallel for variants to all start with parallel_for - Doing math on the spot with constants was simpler, plus other simplifications. - Removed the variant that takes two parameters, and introduced a one parameter variant as just having an 'i' parameter felt like the sweet spot, plus a lot of places where the thread/chunk index was not used I do plan to use in a followup as we can avoid mutexes that way and be more efficient. Bundled changes: - There was an unnecessary polynomial copy in IPA - Also, introduce a SlabVector class where we were using SlabContainerAllocator, with plans to use it more (and possibly make it equal to normal std::vector for native code where memory fragmentation really doesn't matter)
- Loading branch information
Showing
20 changed files
with
189 additions
and
400 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 |
---|---|---|
|
@@ -23,4 +23,6 @@ | |
#else | ||
#define BB_LIKELY(x) x | ||
#define BB_UNLIKELY(x) x | ||
#endif | ||
#endif | ||
|
||
#define BB_UNUSED [[maybe_unused]] |
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.
5bff26b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'C++ Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.05
.nativeconstruct_proof_ultrahonk_power_of_2/20
5375.36291100001
ms/iter4944.324507000005
ms/iter1.09
This comment was automatically generated by workflow using github-action-benchmark.
CC: @ludamad @codygunton