Chromium Code Reviews
DescriptionUse an interning table to compare and hash FileBasedSource objects.
Speeds up analysis by about 8%.
Note: the interning table uses both the file path and the URI to
distinguish FileBasedSource objects. This should eliminate the
strange behaviors we would see in the rare case where a single URI
would get associated with multiple file paths (see dartbug.com/22555).
The interning table is never flushed over the lifetime of the
application. In practice this should not be a problem, because it
only contains one entry per filename/URI, and the total number of
filenames/URIs analyzed during the course of execution should always
be small.
R=brianwilkerson@google.com
Committed: https://code.google.com/p/dart/source/detail?r=44026
Patch Set 1 #
Messages
Total messages: 4 (1 generated)
|
|||||||||||||||||||