hebasto
commented at 2:41 pm on September 7, 2024:
member
This PR aims to reduce build time by replacing multiple file(WRITE|APPEND ...) commands with a single file(WRITE ...) command.
Due to differences in implementation (e.g., filesystem design, system calls, caching), a noticeable improvement in build time is observed only on Windows.
Additionally, the code has been refactored to remove the remainder local variables.
build: Minimize I/O operations in `GenerateHeaderFrom{Json,Raw}.cmake`b07fe666f2
hebasto added the label
Build system
on Sep 7, 2024
DrahtBot
commented at 2:41 pm on September 7, 2024:
contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
TheCharlatan
commented at 3:29 pm on September 7, 2024:
contributor
I am not measuring a difference in performance in the generation of the headers between master and this PR.
hebasto
commented at 3:53 pm on September 7, 2024:
member
I am not measuring a difference in performance in the generation of the headers between master and this PR.
Building on Windows benefits most.
DrahtBot added the label
CI failed
on Sep 7, 2024
hebasto
commented at 9:20 am on September 8, 2024:
member
I am not measuring a difference in performance in the generation of the headers between master and this PR.
Building on Windows benefits most.
On my Windows machine, the time to process data/*.h headers for the test_bitcoin target has been reduced from ~155s to ~105s.
@sipsorcery What do you think?
DrahtBot removed the label
CI failed
on Sep 8, 2024
DrahtBot added the label
CI failed
on Sep 8, 2024
sipsorcery
commented at 8:04 pm on September 8, 2024:
contributor
IMHO it’s always beneficial to improve CI times so +1 for me.
tACKb07fe666f27e2b2515d2cb5a0339512045e64761
TheCharlatan approved
TheCharlatan
commented at 8:39 am on September 9, 2024:
contributor
ACKb07fe666f27e2b2515d2cb5a0339512045e64761
fanquake
commented at 8:40 am on September 9, 2024:
member
This PR aims to reduce the build time.
Can you update the PR description to clarify that this is only relevant for native windows builds. Can you also add the explanation for why this only makes a difference on Windows.
hebasto
commented at 10:21 am on September 9, 2024:
member
This PR aims to reduce the build time.
Can you update the PR description to clarify that this is only relevant for native windows builds. Can you also add the explanation for why this only makes a difference on Windows.
I did my best.
maflcko
commented at 7:08 am on September 11, 2024:
member
Seems fine to always buffer everything in memory twice, because it is already buffered in memory once (as the full hex_content) and the data should be small (generally less than 10 MB?)
maflcko added the label
DrahtBot Guix build requested
on Sep 11, 2024
DrahtBot
commented at 10:41 pm on September 11, 2024:
contributor
Guix builds (on x86_64) [untrusted test-only build, possibly unsafe, not for production use]
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2025-09-18 18:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me