mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	|  fdea5e1628 Flagged by pvs-studio, it looks like these were intended to be passed by
reference originally, but it was missed. This avoids excessive argument
copy when searching / matching in the regex API.
Before:
    Command: /usr/Tests/LibRegex/Regex --bench
    Average time: 5998.29 ms (median: 5991, stddev: 102.18)
After:
    Command: /usr/Tests/LibRegex/Regex --bench
    Average time: 5623.2 ms (median: 5623, stddev: 86.25) | ||
|---|---|---|
| .. | ||
| C | ||
| CMakeLists.txt | ||
| Forward.h | ||
| Regex.h | ||
| RegexByteCode.cpp | ||
| RegexByteCode.h | ||
| RegexBytecodeStreamOptimizer.h | ||
| RegexDebug.h | ||
| RegexError.h | ||
| RegexLexer.cpp | ||
| RegexLexer.h | ||
| RegexMatch.h | ||
| RegexMatcher.cpp | ||
| RegexMatcher.h | ||
| RegexOptimizer.cpp | ||
| RegexOptions.h | ||
| RegexParser.cpp | ||
| RegexParser.h | ||