DescriptionOptimize presubmit checks for win32 where determining the diff
seems to take an inordinate amount of time. The idea is to
lint whole files, and only try to compute deltas if the file
contains at least one error.
For my environment, the three affected presubmit rules took
2000ms each for a 4-file changelist. With this change,
all my rules run in about a second, and none take anything
close to 500ms.
Also, since there seem to be environment-dependent factors at
work here, I'm proposing putting timer warnings that print
a message if any check takes longer than 500ms.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82559
Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=82568
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82607
Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=82653
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82762
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #Patch Set 5 : '' #Patch Set 6 : '' #Patch Set 7 : '' #Patch Set 8 : '' #Patch Set 9 : Optimize presubmit checks for win32 where determining the diff #Patch Set 10 : Optimize presubmit checks for win32 where determining the diff #Patch Set 11 : '' #Patch Set 12 : '' #Patch Set 13 : Fixed O(n^2) issue. #
Messages
Total messages: 14 (0 generated)
|