5 ms·
I belive there are many low hanging fruits to improve the speed. In my project the code generation took more than 3 minutes. This is rather annoying if you have
by brookman64k 2y ago
I belive there are many low hanging fruits to improve the speed. In my project the code generation took more than 3 minutes. This is rather annoying if you have just renamed a field in a single “freezed“ class.
We could speed up this process by 3x by hacking together a script which greps all .dart files for the relevant annotations like “@freezed“ and then only feeds those to the build_runner via a on-the-fly-generated config file.
- munificent 2y agoAgreed, there is a lot of opportunity to improve build_runner. I hope now that we've freed up a lot of engineering resources from macros that we can dig into that some.
- TsonnReopev 2y agohttps://github.com/dart-lang/build/issues/3800 https://github.com/dart-lang/build/issues/3800 is where the "low hanging fruit search" is happening :)