36200091a (Niko-Wu's patch from #2219, picked as written) bounds the
8 MB parse by 8 times the 2 MB one, 2x room on each side of the linear
4x and the quadratic 16x. On mote at load 250 it went red 1 run in 13:
load didn't slow both parses alike. The sizes are now 1 MB and 8 MB, so
linear is 8x and quadratic 64x, and the bound of 24 leaves about 3x on
each side; each size keeps the fastest of five parses.
Run on mote (macOS 27), at this tree:
- go test -tags nogui -count=30 -run TestTOMLBigFile ./internal/edit at
load 214: ok.
- Broken by hand, tomlShaper's line found by a scan from the top of the
file (the per-key pass 2a4042a9 removed): red, "an 8 MB file took
1m52.9s to parse, 71.4x the 1 MB one's 1.58s". Reverted.
- gofmt -l clean.
Still a timing test: it measures a ratio, not a count, since the parse
has no counter to read without adding one to toml.go.