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
Cache globbing in PathList to speed up pod install #3699
Cache globbing in PathList to speed up pod install #3699
Conversation
Can we just invalidate when refreshing from the FS? Otherwise, this seems pretty good to me ;) |
In fact that's the main problem: I don't see what would be the best place in the code to invalidate the cache. |
Ah, that's in |
Something like that new commit I just pushed? (I know I still need to refactor |
Yup, something just like that! |
Do you have an idea why here the code checks if the pattern is a string or not? The documentation of the method says it's supposed to be strings. |
Nope, no clue. That can probably be removed. |
Seeing how it's been used it seems it would be for |
The method signature says that patterns are supposed to be strings, and as now specs are stored in JSON, regexps should not be used anymore.
I added a CHANGELOG entry and removed handling of regexp patterns. |
…ibute Cache globbing in PathList to speed up pod install
Great, let's merge this! Thanks a lot, @vincentisambart 🎉 |
@vincentisambart Nice work! |
I'm not sure if caching paths_for_attribute is wise or not, but in my test it makes
pod install
on our app much faster: 140 sec → 20 sec. All specs still pass.It might be problematic if the content on the file system changes during the run, that's why it's more of an experiment that anything else.
What do you think?