cmake: GenerateHeaderFrom very slow #30881

issue fanquake openend this issue on September 12, 2024
  1. fanquake commented at 2:57 pm on September 12, 2024: member

    Looks like a regression from #30842. Reported in that PR: #30842 (comment):

    0Not sure why, but for me the command took almost an hour:
    1
    2$ ps -p 816447 --format time,rss,cmd
    3    TIME   RSS CMD
    400:51:12 117640 /usr/bin/cmake -DRAW_SOURCE_PATH=_/src/bench/data/block413567.raw -DHEADER_PATH=_/bld-cmake/src/bench/data/block413567.raw.h -DRAW_NAMESPACE=benchmark::data -P _/cmake/script/GenerateHeaderFromRaw.cmake
    5
    6Previously it took only a few seconds.
    

    and on IRC:

    01090551 pts/1    S+     0:00 /bin/sh -c cd /home/pw/git/bitcoin/build_dev_mode/src/bench && /usr/bin/cmake -DRAW_SOURCE_PATH=/home/pw/git/bi
    11090553 pts/1    R+     2:20 /usr/bin/cmake -DRAW_SOURCE_PATH=/home/pw/git/bitcoin/src/bench/data/block413567.raw -DHEADER_PATH=/home/pw/g
    2anyone have a clue why building block413567.raw.h seems to take forever?
    
  2. fanquake added the label Build system on Sep 12, 2024
  3. sipa commented at 2:59 pm on September 12, 2024: member
    Reverting #30842 fixes the issue for me.
  4. hebasto commented at 3:40 pm on September 12, 2024: member

    Reverting #30842 fixes the issue for me.

    Done in #30883.

  5. fanquake closed this on Sep 12, 2024

  6. fanquake referenced this in commit 07c7c96022 on Sep 12, 2024
  7. l0rinc commented at 6:55 pm on September 12, 2024: contributor

github-metadata-mirror

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: 2024-11-21 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me