Change threshold for using ComplexIndexOf (using Boyer-Moore string
search) from 5 to 7. Review URL: http://codereview.chromium.org/3294016 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5429 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
3684dc4d88
commit
3877e1132b
@ -2578,7 +2578,7 @@ static const int kBMMaxShift = 0xff;
|
||||
static const int kBMAlphabetSize = 0x100;
|
||||
// For patterns below this length, the skip length of Boyer-Moore is too short
|
||||
// to compensate for the algorithmic overhead compared to simple brute force.
|
||||
static const int kBMMinPatternLength = 5;
|
||||
static const int kBMMinPatternLength = 7;
|
||||
|
||||
// Holds the two buffers used by Boyer-Moore string search's Good Suffix
|
||||
// shift. Only allows the last kBMMaxShift characters of the needle
|
||||
|
Loading…
Reference in New Issue
Block a user