Skip to content

Commit fb4363e

Browse files
committed
Refactor DataBufferUtils Matcher implementation
The existing implementation was exposed to very poor performance when matching with multiple delimiters against a large buffer with many delimiters. In that case all matchers are invoked many times (as many as the number of delimiters) even though some of them found no match at all on the first pass. The revised implementation uses a single index and advances all matchers together, checking one byte a time, and not letting any one of them search to the end of the entire buffer on a single pass. Closes gh-25915
1 parent 6946fe2 commit fb4363e

File tree

2 files changed

+276
-152
lines changed

2 files changed

+276
-152
lines changed

0 commit comments

Comments
 (0)