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 compared to distinfo.awk, while being 100% compatible. After installing, set TOOLS_PLATFORM.mktool=/path/to/mktool to enable it. Comparing the time taken to run "bmake distinfo" on a SmartOS host inside www/grafana, distinfo.awk takes: real 3m37.603s user 1m16.887s sys 1m53.369s while mktool takes: real 0m12.516s user 0m10.314s sys 0m8.485s It should be noted that the vast majority of that time is in the generation of the distinfo input file. mktool itself takes around 2 seconds. Patches to improve input file generation are available, but are dependent on bmake with temporary file support due to argmax limits on NetBSD.
- Loading branch information