Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rubygems#1294 from efficientcloud/bundler
--- Make fetch_specs faster fetch_specs merges installed, cached and remote_specs together, using Index.use. Index.use has acceptable performance for small indexes, but when adding a large Index as generated by remote_specs, it takes ages. This change reorders fetch_specs to base its index off of the index generated by remote_specs and then replaces dupes with what cached_specs and installed_specs come up with. Measured timing approximates, with this test program: https://gist.github.com/1067157 MRI 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] 1-0-stable 17sec + this 9sec + this + rubygems#1288 9sec MRI 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] 1-0-stable 11sec + this 6sec + this + rubygems#1288 4sec
- Loading branch information