3 ms·
That's a great question. I suppose they split it up into separate requests since downloading all of the dependencies at the same time might end up being slow an
by pat_shaughnessy 15y ago
That's a great question. I suppose they split it up into separate requests since downloading all of the dependencies at the same time might end up being slow and returning a lot of data, especially for something like Rails with a lot of dependencies. Or maybe separate requests was fast enough and a good trade off between speed/data and number of requests.
- moeffju 15y agoBut bundler cannot determine which versions it needs until it has all dependencies, right? And in effect, all it does is recursively call for one "layer" of dependencies after the other, so it seems like the backend might just as well recursively query itself and return all dependencies at once.