Feedback on build + build_runner 2.5.0 #4036
Replies: 5 comments 17 replies
-
Test fixes for generators: Tests that are using Here are the fixes that were needed to I noticed that |
Beta Was this translation helpful? Give feedback.
-
I hope this can be of assistance: 2.4.14:
2.5.0 (run 1):
Run 2:
PC Specifications: My build time has been ~27 seconds for a while now, so no changes in the new release, at least when building fresh. Some of the files listed in the output do not exist, even upon searching my file system. In fact, every time I execute build_runner build it outputs new random "freezed.dart" files that do not exist. The parent file does exist, but nowhere is a freezed.dart sub file referenced. Most of the files are not data classes at all. |
Beta Was this translation helpful? Give feedback.
-
I tried v2.5.1 and the logging is great. Performance is improved too (Around ~%24 cold-build in my case). Here are my results: v2.4.15:
v2.5.1:
The most problematic issue I could notice and that has been there in the previous versions too is the incremental builds long runs. For instance, a change in a file that is not a generated file itself and not that much imported throughout the codebase results in this incremental build time:
The 45-second build time between each minor change and the Analyzer not working during this is a bit suboptimal. UPDATE: To anyone facing similar performance issues like mine (combining_builder), for me freezed was used a lot more than json_serializable, and in a few instances, we actually needed json_serializable, so I removed json_serializable in favor of manual JSON serialization and used globs on all other generators to limit the input files. The incremental build times are now around 12 seconds, which is bearable. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the work. Each time I run the
|
Beta Was this translation helpful? Give feedback.
-
Hi @davidmorgan First of all, thank you for the effort and work to reduce build_runner’s build times. However, in our relatively complex project, the new build_runner is actually slower than the old one:
Note: I translated the outputs of the old build_runner ("1m 35s") to make it easier to compare. Thats +17% for a clean full build, +30% for incremental builds and +168% for build_runner watch build. For both the “incremental build” and the “watch build,” I only made a trivial change (added a dummy member) in a single file containing a Riverpod provider. For the "clean builds" I manually deleted the build folder + all generated files, than ran Here are the build_runner outputs:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Place to put general feedback on the release c014314 :)
Beta Was this translation helpful? Give feedback.
All reactions