-
Notifications
You must be signed in to change notification settings - Fork 212
Size of assets-graph.json is too large #2747
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
Comments
Closing as a dupe of #787 and #41. We have not had a strong motivation to fix this in the past, although this does seem quite excessive in your case. However, with a project of this size what are your total build times like? While there are things that could be done here my guess would be that this has more to do with project structure causing a huge number of edges between nodes. For instance if you have a single very large package we are not very efficient today in how this is handled due to the constraints of the build system and the compiler, especially if you have all your files under |
A first build takes 10-12 minutes. An incremental build takes ~1-1.5 minutes. We have migrated the project on webdev from our custom builder (build_runner + some optimizations). Before migration some rebuild takes 30-40s and size of assets-graph.json was 120Mb. Size of asset-graph.json has been increased because some post process was added by build_runner. Here is the list of added post processors:
|
The only one of those builders that I would expect to create any large number of edges would be If your optimizations listed were around the resolver, that most likely was the reason for the smaller size before. The default (safe) resolver adds a huge number of edges (N^2 worst case). |
Thank you for the answers |
@natebosch thx you. I'll try it in a couple of days |
I have tested it on the our project. It become better and here is the result:
|
We have a big project (assets_graph.json ~254Mb). Each incremental build takes additional 20-30 seconds for asset graph serialization. I think it's too much. How can I speed up incremental builds for this project? Maybe it's better to save asset graph to a binary file (not json)?
The text was updated successfully, but these errors were encountered: