Add simple cache to Bundler.load_gemspec #1635

Closed
wants to merge 1 commit into
from
Commits on Jan 19, 2012
  1. Add simple cache to Bundler.load_gemspec

    dekellum committed Jan 19, 2012
    In some projects, for example those with 10s of local gemspecs, use of
    `git ls-files` for spec.files, or specs requiring significant source
    to get at a spec.version; this change to cache load_gemspec results in
    notable performance gains.
    
    The cache also avoids loading these same gemspecs repeatedly with
    different LOAD_PATH values.