Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mktool is an optional external tool, available from pkgtools/mktool or "cargo install mktool", that provides significant performance improvements and an improved progress bar compared to other fetch commands. After installing, set both: FETCH_USING= mktool TOOLS_PLATFORM.mktool= /path/to/mktool to enable it. This is so that an alternate fetch command can still be used if required, while still using mktool elsewhere in the infrastructure, as not all network access methods (e.g. proxies) have been fully tested. When testing the performance of "bmake fetch" inside wip/grafana on an M1 MacBook Pro running macOS, fetching distfiles from http://localhost/ backed by www/caddy, FETCH_USING=curl took 47m 58s while FETCH_USING=mktool took just 4 seconds, well over 500x faster! This can be seen in realtime along with an example of the streamlined progress bar at <https://asciinema.org/a/S4MWXHLSJmL4GKYAhOBIIHE31>.
- Loading branch information