rock-core / tools-syskit

Rock's model-based component management layer
1 stars 14 forks source link

fix: speedup Syskit's own test suite #426

Closed doudou closed 3 months ago

doudou commented 3 months ago

I did some quick profiling, and turns out that the suite was wasting a significant amount of time looking for pkg-config packages. One source of this was the ROS loader. The other was that the component loader was adding a new Loaders::PkgConfig to the default loader, one per test, which is a rather massive memory leak over time.

On my machine, the suite went from 12 min to 4 when this PR was also added