The lambda in NinjaBuildElement.write is quite expensive, totalling 0.3s just to do a couple function calls. Since it is used just once, simply inline it. On a QEMU build, the total time spent in write from this series goes from 5.321s to 3.238s, though part of it can be attributed to previous patches.pull/7607/head
parent
b14601da7b
commit
cbde13850f
1 changed files with 2 additions and 3 deletions
Loading…
Reference in new issue