You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4bbcf2d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/development/building.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,12 @@ Requires Xcode Command Line Tools and Homebrew. The script installs: `boost`, `c
57
57
./build-mac.sh --boost-root /opt/boost_1_74_0
58
58
```
59
59
60
+
Apple Silicon builds natively: the tree contains no x86-only code (the SSE-only `equihash` that fc once vendored was unused and has been removed), and CMake adds the Homebrew library directories to the link path so the static Boost.Iostreams dependencies (`zstd`, `lzma`, `icu*`) resolve. A cold `vizd` build takes about 10 minutes on an 8-core M-series laptop, against roughly an hour for the same build under amd64 emulation in Docker.
61
+
62
+
### Where compile time goes
63
+
64
+
Measured with clang `-ftime-trace` on a Release build. Five translation units account for a third of the project's compile time: `libraries/chain/database.cpp` (~250 s), `libraries/wallet/wallet.cpp`, `libraries/network/dlt_p2p_node.cpp`, `libraries/protocol/operations.cpp` and `plugins/snapshot/plugin.cpp` (100–160 s each). In a typical unit about two thirds of the time is the optimizer, not the parser: every file that serializes a `signed_block` instantiates the `fc::raw` pack/unpack visitors for every field of every operation (about 1,500 functions), and `-O3` then optimizes each of them again. Precompiled headers (`-DENABLE_PCH=ON`) therefore shave only the parsing third; `ccache` is what makes rebuilds fast.
0 commit comments