aboutsummaryrefslogtreecommitdiffstats
path: root/ccl_test.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-10-30 19:04:42 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-10-30 19:09:35 -0700
commite4f0185460ab348d596877606b2d4a99b4c27ffb (patch)
treefcc897c977b35da6344aad7531faa4c8cf66b9b6 /ccl_test.go
parentaa8a935f620a053cc9c3c65587b433f3e8d3a6e9 (diff)
downloadccl-e4f0185460ab348d596877606b2d4a99b4c27ffb.tar.zst
Set the lexer as a field on parser
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)
Diffstat (limited to 'ccl_test.go')
-rw-r--r--ccl_test.go2
1 files changed, 1 insertions, 1 deletions
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 {