Skip to content

cmake: GenerateHeaderFrom very slow #30881

@fanquake

Description

@fanquake

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

Not sure why, but for me the command took almost an hour:

$ ps -p 816447 --format time,rss,cmd
    TIME   RSS CMD
00: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

Previously it took only a few seconds.

and on IRC:

1090551 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
1090553 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
anyone have a clue why building block413567.raw.h seems to take forever?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions