R25 fix: check and remove escapes without splitting a term into characters
Browse filesHasWildcard and Unescape run on every parsed term. Both went through
Split, which builds a slice with one entry per character, so parsing a
long field group allocated about four times the memory of 0.2.1.
TestParseAllocsPerTerm parses a group of 100 escaped ids and fails when
Parse allocates more than 26 times per term. It allocates 22.5 times
now and 34.5 times on 0.3.0. An allocation count does not vary between
machines, so the check is stable in CI where a timing check is not.
FuzzScansMatchSplit replaces TestScansMatchSplit with the same check:
HasWildcard and Unescape must agree with reading the pattern through
Split. The earlier inputs are its seeds, so go test still runs them, and
go test -fuzz tries random strings. A new seed covers a backslash before
a multi-byte character cut off after two bytes.