bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
76 stars 228 forks source link

sequence.unique massive performance boost #300

Closed Kojoley closed 1 year ago

Kojoley commented 1 year ago
Boost@develop b2 --layout=versioned -n install -d+10 build was now sequence.unique
clean 594 -> 230 (2.6x) 366 -> 1.29 (284x)
rerun 547 -> 182 (3.0x) 362 -> 1.27 (285x)

I've changed unification in generators to be stable because it is faster somehow (by 33% vs non-sorting non-stable unique, by 180% vs sorting unique), plus it is preferable that targets are built in the order of declaration.