bitcoin/cmake
Lőrinc aa003d1568 build: Minimize I/O operations in GenerateHeaderFromRaw.cmake
Replaced multiple file writes with a single string template write.
The raw content is first grouped into 8 byte chunks, followed by another regex replace which wraps them in `std::byte`.

Tested the output with `diff -w` and they're the same - only whitespace differences because slightly different source formatting.

Tested the performance with:
> time cmake -DRAW_SOURCE_PATH=src/bench/data/block413567.raw -DHEADER_PATH=build/after/block413567.raw.h -DRAW_NAMESPACE=benchmark::data -P cmake/script/GenerateHeaderFromRaw.cmake

Before:
> 15.41s user 23.06s system 97% cpu 39.593 total
After:
> 0.77s user 0.06s system 97% cpu 0.849 total
2024-09-12 22:08:15 +02:00
..
module Merge bitcoin/bitcoin#30803: build: Minor build system fixes and amendments 2024-09-12 10:30:06 +01:00
script build: Minimize I/O operations in GenerateHeaderFromRaw.cmake 2024-09-12 22:08:15 +02:00
bitcoin-config.h.in cmake: Add WITH_DBUS option 2024-08-16 19:27:42 +01:00
ccache.cmake cmake: Add ccache support 2024-08-16 19:27:37 +01:00
cov_tool_wrapper.sh.in cmake: Add Coverage and CoverageFuzz scripts 2024-08-16 21:19:12 +01:00
crc32c.cmake cmake: Build crc32c static library 2024-08-16 19:27:37 +01:00
introspection.cmake cmake: Build bitcoin_crypto library 2024-08-16 19:27:38 +01:00
leveldb.cmake cmake: Build leveldb static library 2024-08-16 19:27:38 +01:00
minisketch.cmake cmake: Build minisketch static library 2024-08-16 19:27:38 +01:00
tests.cmake cmake: Add Python-based tests 2024-08-16 19:27:41 +01:00