Renamed resolution performance into something more general. Added the performance tweak ideas from the discussion on the mailing list.
(cherry-picked from 3424892)
Added initial spec for caching of the dependency descriptors.
(cherry-picked from 2440819)