aboutsummaryrefslogtreecommitdiffstats
path: root/sys/generated
Commit message (Collapse)AuthorAgeFilesLines
* sys/generated: don't do lazy initialization of all targetsDmitry Vyukov2025-11-171-1/+2
| | | | | Currently registration of targets calls targets.Get which does slow lazy initialization. This adds several seconds to start of every binary and test. Don't do that.
* sys/syz-sysgen: serialize descriptions as gob and embedDmitry Vyukov2025-01-231-0/+105
Instead of generating Go files with descriptions serialize them as gob and compress with flate. This significantly reduces build time, go vet time, and solves scalability problems with some static analysis tools. Reference times (all after rm -rf ~/.cache/go-build) before: TIME="%e %P %M" time go install ./syz-manager 48.29 577% 4824820 TIME="%e %P %M" time go test -c ./prog 56.28 380% 6973292 After: TIME="%e %P %M" time go install ./syz-manager 22.81 865% 859788 TIME="%e %P %M" time go test -c ./prog 12.74 565% 267760 syz-manager size before/after: 194712597 -> 83418407 -57% even provided we now embed all descriptions instead of just a single arch. Deflate/decoding time for a single Linux arch is ~330ms. Fixes #5542