summaryrefslogtreecommitdiff
path: root/mesonbuild/programs.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-01-08 14:33:51 +0100
committerEli Schwartz <eschwartz93@gmail.com>2025-01-08 13:45:26 -0500
commit5af3d3df0034d7ec3c159cc31f063558d5369df3 (patch)
tree9e05dfbcd50978b350a704ac59a3bd8c007a80e0 /mesonbuild/programs.py
parent4151d09e262f48b3e06e6677581465758e08b79d (diff)
downloadmeson-5af3d3df0034d7ec3c159cc31f063558d5369df3.tar.gz
ninjabackend: avoid repeatedly building and analyzing rule commands
Two expensive parts of length_estimate() are executed for each target, but they are really always the same. Cache them in __init__, there will always be more targets than rules in cases where speed counts. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/programs.py')
0 files changed, 0 insertions, 0 deletions