-
Notifications
You must be signed in to change notification settings - Fork 13.3k
optimize dep-graph serialization #35232
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
Also surprising, if unrelated: even with 100% reuse, translation takes ~4s on my machine. I think the only thing it's doing is re-generating the metadata. |
OK, so, my first attempt at optimizing this was kind of a failure, in that it caused us to take more time than before. =) Some things I learned:
Also worth nothing: When I rewrote this code, some of the problems I've encountered with non-determinstic re-use basically went away. So that's interesting. |
Those seem like very valuable pieces of information! Sounds like some kind of caching on intermediate graph nodes might be a speedup opportunity. But that's just off the top of my head, I haven't really investigated. |
I have some thoughts about how to improve performance. I'll experiment On Aug 3, 2016 9:30 PM, "Michael Woerister" [email protected]
|
My latest version runs in 2.5s -- but it still spoils the unit tests. I have to fix that next, as we talked about @michaelwoerister. |
(Still seems like we could go faster...) |
OK, got it down to 1.8s. |
Looking at the syntex-syntax crate, I see that dep-graph serialization is pretty expensive:
We're saving way more data than we really need to. I expect we can make this a lot cheaper by pruning the graph. But it'd be worth doing some profiling.
cc @michaelwoerister
The text was updated successfully, but these errors were encountered: