bitcoin/cmake/script
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
..
Coverage.cmake build: Add COMMAND_ERROR_IS_FATAL to every process in coverage scrips 2024-09-04 16:02:14 +01:00
CoverageFuzz.cmake build: Add JOBS variable support to CoverageFuzz.cmake script 2024-09-04 16:03:06 +01:00
CoverageInclude.cmake.in build: Add COMMAND_ERROR_IS_FATAL to every process in coverage scrips 2024-09-04 16:02:14 +01:00
GenerateBuildInfo.cmake doc: Drop mentions of share/genbuild.sh 2024-08-29 12:38:37 +01:00
GenerateHeaderFromJson.cmake Revert "build: Minimize I/O operations in GenerateHeaderFrom{Json,Raw}.cmake" 2024-09-12 16:34:57 +01:00
GenerateHeaderFromRaw.cmake build: Minimize I/O operations in GenerateHeaderFromRaw.cmake 2024-09-12 22:08:15 +02:00
macos_zip.sh cmake: Add Maintenance module 2024-08-16 21:19:11 +01:00