DescriptionSpeed improvements to SubstringSetMatcher
This is an attempt to reland https://codereview.chromium.org/14780003/ which was reverted as https://codereview.chromium.org/15045002/.
Patch set 1 here is identical with p.s. 7 in https://codereview.chromium.org/14780003/. The failing buildbot was linux compile (dbg), so trying it here explicitly.
Original description:
The main one is coputing the Aho-Corasick tree size in advance.
Also contained are code clean-ups and minor optimisations, like removing HasEdge/GetEdge sequences, or adding const to aid compiler optimisations.
This was tested on a benchmark adding 20k+ patterns. It showed a reduction of the running time by 30%.
BUG=236368
TBR=battre
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198871
Patch Set 1 #Patch Set 2 : Moving the kNoSuchEdge definition to a cc file #
Messages
Total messages: 2 (0 generated)
|