Help and docs
Sign in
gh-pr/94
1 of 1

R25 fix: check and remove escapes without splitting a term into characters

Browse files
gitstack 15d 3 files +100 ~5
Landed as 4879aab5 See in history
You are on patch 2. Patch 3 was pushed 14d ago Go to patch 3

HasWildcard 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.

Latest