3 ms·
as you have seen in the article, bundler needs dependencies of all versions as it might have to deal with older releases. Building the whole dependency graph fo
by pilif 15y ago
as you have seen in the article, bundler needs dependencies of all versions as it might have to deal with older releases. Building the whole dependency graph for all versions of a gem with many dependencies in itself will a) take a very long time and b) probably be huge - likely much bigger than the whole gem index that was downloaded up until 1.1. The time required for parsing those MB after MB of data of which most will be thrown away will quickly get significant.
Another option would be to query for all dependencies of a specific version of a gem. That would reduce the amount of data, but it would still mean more work for the server and it would produce a lot more data to cache (much of which would never be queried more than once)
With the currently applied method, only the data that's really required must be queried and it can easily be cached on the server side too.