From e4f0185460ab348d596877606b2d4a99b4c27ffb Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Thu, 30 Oct 2025 19:04:42 -0700 Subject: Set the lexer as a field on parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit goos: linux goarch: amd64 pkg: roseh.moe/pkg/ccl cpu: AMD Ryzen 9 5900X 12-Core Processor │ baseline.txt │ new.txt │ │ sec/op │ sec/op vs base │ Parse-24 4.808µ ± 0% 4.739µ ± 0% -1.44% (p=0.000 n=20) --- ccl_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ccl_test.go') diff --git a/ccl_test.go b/ccl_test.go index 53b2a24..fa51ab1 100644 --- a/ccl_test.go +++ b/ccl_test.go @@ -684,7 +684,7 @@ func BenchmarkLex(b *testing.B) { repeated: [5, 6] `) for b.Loop() { - l := newLexer(msg) + l := &lexer{data: msg} for { _, err := l.next() if err != nil { -- cgit v1.3.1