spotify / XCRemoteCache

Other
827 stars 50 forks source link

Fix hybrid incremental performance #135

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

When a Hybrid target is fallbacking to a local build, it invokes all commands from history.compile, even it makes no sense as Xcode will trigger them anyway. Because invoking commands from history.compile happens without parallelization, that bug could lead to a very slow incremental builds.

Project to reproduce a problem: https://github.com/polac24/HybridXCRemoteCache

This fix cleans the history.compile file in all cases, no matter if there has been: cache hit, cache miss or even an error.

Fixes #133