Conversation
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
|
Looks reasonable. Do you have any performance measurements of this change? |
|
I'll prepare some benchmarks. Off the top of my head, dune's own build and other common projects aren't representative since they reuse globs that much. @Khady mind testing this? |
|
@Khady ping on testing this. |
|
Sorry I was on holidays, I didn't have time to look at this. Will try to schedule an attempt this week. |
|
It looks like this version of dune doesn't provide dune.configurator anymore. And one of our dependencies needs it. So I am not able to try this PR currently. |
|
|
I did some benchmarking of this myself. I created a setup where
This PR makes clean builds around 2x faster ( |
|
Sounds great! |
|
My problem was with an old package that didn't declare explicitly the dependency on dune-configurator and was previously installed in the switch only by luck. I gave a try to dune master after this branch was merged. The clean build of my project takes about the same time than with 2.7.1. The next |
|
Could you profile with memtrace again with master? 6 seconds is indeed quite slow. |
|
Yes, I will give it a go |
|
While you're at it, could you give us a |
Memoize traces of globs. This is a naive attempt, and I'm not sure if it's
correct.