Cache packageName to base Uri mapping.

This makes analysis with using incremental analysis cache 30% faster.
Without this change getBase() takes 40% (!) of total analysis time.
With this change - just 0.79% of total time.

Although the remaining 17% of PackagesBase.resolve() make my cry.
Why URI manipulations are SO SLOW?!

R=brianwilkerson@google.com, pquitslund@google.com, kevmoo@google.com
BUG=

Review URL: https://codereview.chromium.org/2041103005 .
2 files changed
tree: 21b4755f792dd46ed4fca8d8509a061574512cb8
  1. lib/
  2. test/
  3. tool/
  4. .analysis_options
  5. .gitignore
  6. .travis.yml
  7. AUTHORS
  8. CHANGELOG.md
  9. CONTRIBUTING.md
  10. LICENSE
  11. pubspec.yaml
  12. README.md
README.md

package_config

Support for working with Package Resolution Configuration files as described in this DEP, under review [here] (https://github.com/dart-lang/dart_enhancement_proposals/issues/5).

Build Status pub package

Features and bugs

Please file feature requests and bugs at the issue tracker.