DescriptionFix a performance bug with FileLocation.
The bug was actually located in SourceLocation. The constructor
accesses this.line and `this.column` in preference to the arguments it
was passed, which was fine for normal SourceLocations but for
FileLocations caused two binary searches to be performed every time a
location was instantiated.
R=rnystrom@google.com
Committed: https://github.com/dart-lang/source_span/commit/97fc7da1ec71c5d76e31df5dff4815c5502c666c
Patch Set 1 #Patch Set 2 : update pubspec #
Messages
Total messages: 3 (0 generated)
|