Skip to content

Commit 6a4ee74

Browse files
committed
Enable Go 1.25 JSONv2 Experiment
That should improve the JSON marshalling/unmarshalling performance.
1 parent 5268831 commit 6a4ee74

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ jobs:
5151
version: v2.11.3
5252

5353
- name: Test
54-
run: go test -v ./...
54+
run: make test
5555

5656
- name: Fuzz Test
5757
run: go test -fuzz=FuzzCalculateFileChunks -fuzztime=10s ./util
5858

5959
- name: Build
60-
run: go build .
60+
run: make build
6161

6262
- name: Perform CodeQL Analysis
6363
uses: github/codeql-action/analyze@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4
@@ -117,6 +117,7 @@ jobs:
117117
- name: Build
118118
env:
119119
CGO_ENABLED: '0'
120+
GOEXPERIMENT: 'jsonv2'
120121
GOOS: ${{ matrix.os }}
121122
GOARCH: ${{ matrix.arch }}
122123
run: go build .

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
lint:
2+
golangci-lint run
3+
4+
test:
5+
GOEXPERIMENT=jsonv2 go test ./...
6+
7+
build:
8+
GOEXPERIMENT=jsonv2 go build .
9+
10+
.PHONY: lint test build

0 commit comments

Comments
 (0)