forked from facebook/folly
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build speed tweak for CacheLocality: no constinit table of relaxed_at…
…omic Summary: The compiler must evaluate the constructor for each element of the table, which is observed to cost compile time. Switch to a constinit array of raw bytes instead and always use `atomic_ref`s to access the table in order to avoid valuating all of the `relaxed_atomic` constructors at runtime. ```name=master $ foundation/scripts/run-perf-compile --quiet --syntax --platform platform010 --which perf folly/concurrency/test/CacheLocalityTest.cpp 9,275,503,791 instructions:uP ``` ```name=branch $ foundation/scripts/run-perf-compile --quiet --syntax --platform platform010 --which perf folly/concurrency/test/CacheLocalityTest.cpp 4,577,023,094 instructions:uP ``` Reviewed By: Gownta Differential Revision: D40504017 fbshipit-source-id: b4cb22b27ed8f31787b0f860736be0e4b56e38da
- Loading branch information
1 parent
30abf02
commit 82d3251
Showing
2 changed files
with
19 additions
and
11 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