-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys/gen: generated files are too big #5542
Comments
Things will get worse after #5545. |
|
Thanks. I've learned about embed.FS. |
FTR
But if we also decide to include the seeds, that's already going to be troublesome:
That being said, we will likely still need to parse the descriptions at compile time because we auto-generate parts of syzkaller/sys/syz-sysgen/sysgen.go Lines 370 to 375 in 5df2386
syzkaller/sys/syz-sysgen/sysgen.go Lines 394 to 406 in 5df2386
|
I would go with Theoretically we can make To avoid compilation on start we could serialize what's currently in generated files as json, and then simply deserialize it on start. All generated structures use only public fields of prog types, so it should all work out of the box. Instead of having compiler create these global vars, we deserialize them from json and call prog.RegisterTarget. |
Is your feature request related to a problem? Please describe.
We currently generate <10 go files, ~8.8MB each.
These files are the problem for some analysis tools.
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: