You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building tch-rs is (as expected) one of the biggest contributors to compilation time. However, I noticed that the execution of the torch-sys buildscript starts surprisingly late in the compilation graph (-> cargo build --timings), seemingly due to the curl crate and its build-script actually taking a good few seconds to build, and moving tch quite late into compilation.
By replacing curl with a smaller dependency such as ureq, I was able to improve clean build time by about 10 seconds. (Through very unscientific testing, of course, but still)
It may be worth considering such a switch. I'd be happy to contribute a PR if you think this is viable!
The text was updated successfully, but these errors were encountered:
Building tch-rs is (as expected) one of the biggest contributors to compilation time. However, I noticed that the execution of the torch-sys buildscript starts surprisingly late in the compilation graph (->
cargo build --timings
), seemingly due to the curl crate and its build-script actually taking a good few seconds to build, and moving tch quite late into compilation.By replacing curl with a smaller dependency such as ureq, I was able to improve clean build time by about 10 seconds. (Through very unscientific testing, of course, but still)
It may be worth considering such a switch. I'd be happy to contribute a PR if you think this is viable!
The text was updated successfully, but these errors were encountered: