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: e61a9e63ca744f9ebdcd71f1aa5aa6bb3fdb0cb4
- pkgs/