[go] encoding/json: zstd compress the testdata

73 views
Skip to first unread message

Joseph Tsai (Gerrit)

unread,
Sep 4, 2023, 4:02:28 PM9/4/23
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Joseph Tsai has uploaded this change for review.

View Change

encoding/json: zstd compress the testdata

There is a non-public zstd decoder in the stdlib (CL 473356).

Using zstd v1.4.4, golang_source.json can be recompressed
with `zstd -19` to become ~91.502KiB large instead of the gzip'd
size of ~117.609KiB. This is a reduction of 22%.

This commit will increase the Git history by ~92KiB,
but reduce the final Go release by ~26KiB.
Presumably there are orders and orders of magnitude more downloads
of the final release than there are checkouts of the Git repo.

This commit will set the precedence for using zstd for other
testdata in the stdlib. For example, the largest testdata directory
is internal/trace/testdata at ~2.218MiB. With gzip compression
using zopfli, we can reduce this to ~1.212MiB.
However, with zstd, we can reduce this to ~1.101MiB.
Another compression format with better ratios is XZ,
which results in a size of ~0.951MiB.

However, there is no native XZ decompressor in the stdlib,
the LZMA algorithm is not well specified, and
LZMA decompression is really slow.
Zstandard probably represents the best balance of tradeoffs
for the next decade to come. It is well-specified,
fast to decompress, and an implementation exists in stdlib.

Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
---
M src/encoding/json/bench_test.go
D src/encoding/json/testdata/code.json.gz
A src/encoding/json/testdata/code.json.zst
3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/encoding/json/bench_test.go b/src/encoding/json/bench_test.go
index f7bcf80..a93ecde 100644
--- a/src/encoding/json/bench_test.go
+++ b/src/encoding/json/bench_test.go
@@ -12,9 +12,9 @@

import (
"bytes"
- "compress/gzip"
"fmt"
"internal/testenv"
+ "internal/zstd"
"io"
"os"
"reflect"
@@ -44,15 +44,12 @@
var codeStruct codeResponse

func codeInit() {
- f, err := os.Open("testdata/code.json.gz")
+ f, err := os.Open("testdata/code.json.zst")
if err != nil {
panic(err)
}
defer f.Close()
- gz, err := gzip.NewReader(f)
- if err != nil {
- panic(err)
- }
+ gz := zstd.NewReader(f)
data, err := io.ReadAll(gz)
if err != nil {
panic(err)
diff --git a/src/encoding/json/testdata/code.json.gz b/src/encoding/json/testdata/code.json.gz
deleted file mode 100644
index 1572a92..0000000
--- a/src/encoding/json/testdata/code.json.gz
+++ /dev/null
Binary files differ
diff --git a/src/encoding/json/testdata/code.json.zst b/src/encoding/json/testdata/code.json.zst
new file mode 100644
index 0000000..f8ec690
--- /dev/null
+++ b/src/encoding/json/testdata/code.json.zst
Binary files differ

To view, visit change 525516. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
Gerrit-Change-Number: 525516
Gerrit-PatchSet: 1
Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>

Joseph Tsai (Gerrit)

unread,
Sep 4, 2023, 4:02:49 PM9/4/23
to goph...@pubsubhelper.golang.org, Daniel Martí, Ian Lance Taylor, golang-co...@googlegroups.com

Attention is currently required from: Daniel Martí, Ian Lance Taylor.

Patch set 1:Run-TryBot +1

View Change

    To view, visit change 525516. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Mon, 04 Sep 2023 20:02:44 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes

    Joseph Tsai (Gerrit)

    unread,
    Sep 4, 2023, 4:19:48 PM9/4/23
    to goph...@pubsubhelper.golang.org, Gopher Robot, Daniel Martí, Ian Lance Taylor, golang-co...@googlegroups.com

    Attention is currently required from: Daniel Martí, Ian Lance Taylor, Joseph Tsai.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #1:

        Failure looks real:
        ```
        panic: zstd decompression error at 23310: offset past window
        ```

        will look into it later.

    To view, visit change 525516. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Mon, 04 Sep 2023 20:19:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Daniel Martí (Gerrit)

    unread,
    Sep 4, 2023, 5:31:53 PM9/4/23
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Gopher Robot, Ian Lance Taylor, golang-co...@googlegroups.com

    Attention is currently required from: Ian Lance Taylor, Joseph Tsai.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #1:

        Could we document what we used to generate the zstd archive? In particular, what zstd version and what compression level, so that other files can be generated in a similar way as well. I assume we want a higher compression level, assuming that doesn't significantly increase the decompression cpu cost or memory usage.

        Generally I'm in favor of this change for the reasons you outline. I'd be against it if zstd was very new and a better compression mechanism might come soon, to avoid noise, but at this point zstd has been well known as a good middle ground for nearly a decade. It's unlikely we'll do this again in at least another ten years.

    To view, visit change 525516. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Mon, 04 Sep 2023 21:31:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Daniel Martí (Gerrit)

    unread,
    Sep 4, 2023, 5:32:29 PM9/4/23
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Gopher Robot, Ian Lance Taylor, golang-co...@googlegroups.com

    Attention is currently required from: Ian Lance Taylor, Joseph Tsai.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #1:

        Could we document what we used to generate the zstd archive? In particular, what zstd version and wh […]

        Err, you did specify `zstd -19` at the top of the commit message. So just the version would be missing, for clarity.

    To view, visit change 525516. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Mon, 04 Sep 2023 21:32:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Daniel Martí <mv...@mvdan.cc>

    Daniel Martí (Gerrit)

    unread,
    Sep 4, 2023, 5:33:39 PM9/4/23
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Gopher Robot, Ian Lance Taylor, golang-co...@googlegroups.com

    Attention is currently required from: Ian Lance Taylor, Joseph Tsai.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #1:

        Failure looks real: […]

        Could be that the built-in zstd decoder can't handle high compression levels, since those might use larger windows or more complex parts of the algorithm/encoding.

    To view, visit change 525516. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Mon, 04 Sep 2023 21:33:34 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Joseph Tsai <joe...@digital-static.net>

    Ian Lance Taylor (Gerrit)

    unread,
    Sep 4, 2023, 6:37:58 PM9/4/23
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Gopher Robot, Daniel Martí, Ian Lance Taylor, golang-co...@googlegroups.com

    Attention is currently required from: Daniel Martí, Joseph Tsai.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #1:

        Could be that the built-in zstd decoder can't handle high compression levels, since those might use […]

        If the problem were a large window, I would expect a consistent failure, not one that only occurs with the race detector.

        Unfortunately, I haven't been able to recreate the problem.

        There aren't any global variables in internal/zstd, so it's hard to understand how there could be a race with a simple call to zstd.NewReader.

    To view, visit change 525516. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Comment-Date: Mon, 04 Sep 2023 22:37:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Daniel Martí <mv...@mvdan.cc>
    Comment-In-Reply-To: Joseph Tsai <joe...@digital-static.net>

    Daniel Martí (Gerrit)

    unread,
    Sep 11, 2023, 3:51:25 AM9/11/23
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Gopher Robot, Ian Lance Taylor, golang-co...@googlegroups.com

    Attention is currently required from: Ian Lance Taylor, Joseph Tsai.

    View Change

    1 comment:

    To view, visit change 525516. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Mon, 11 Sep 2023 07:51:20 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Daniel Martí <mv...@mvdan.cc>
    Comment-In-Reply-To: Joseph Tsai <joe...@digital-static.net>
    Comment-In-Reply-To: Ian Lance Taylor <ia...@golang.org>

    Joseph Tsai (Gerrit)

    unread,
    Apr 17, 2025, 2:36:51 PMApr 17
    to goph...@pubsubhelper.golang.org, Damien Neil, Gopher Robot, Daniel Martí, Ian Lance Taylor, golang-co...@googlegroups.com
    Attention needed from Damien Neil and Ian Lance Taylor

    Joseph Tsai voted and added 1 comment

    Votes added by Joseph Tsai

    Commit-Queue+1
    Run-TryBot+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 2 (Latest):
    Joseph Tsai . resolved

    Rebasing as it seems that internal/zstd has since been fixed.

    I think we should still pursue this as it will set the precedence for future testdata that we may add for the json/v2 work.

    See CL 665796.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    • Ian Lance Taylor
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedLegacy-TryBots-Pass
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 2
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Damien Neil <dn...@google.com>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Thu, 17 Apr 2025 18:36:46 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Damien Neil (Gerrit)

    unread,
    Apr 17, 2025, 3:51:44 PMApr 17
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Go LUCI, Gopher Robot, Daniel Martí, Ian Lance Taylor, golang-co...@googlegroups.com
    Attention needed from Ian Lance Taylor and Joseph Tsai

    Damien Neil voted Code-Review+2

    Code-Review+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ian Lance Taylor
    • Joseph Tsai
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedLegacy-TryBots-Pass
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 2
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Thu, 17 Apr 2025 19:51:38 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joseph Tsai (Gerrit)

    unread,
    Apr 17, 2025, 4:51:30 PMApr 17
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Ian Lance Taylor and Joseph Tsai

    Joseph Tsai uploaded new patchset

    Joseph Tsai uploaded patch set #3 to this change.
    Following approvals got outdated and were removed:
    • Legacy-TryBots-Pass: Run-TryBot+1 by Joseph Tsai
    • TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ian Lance Taylor
    • Joseph Tsai
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 3
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joseph Tsai (Gerrit)

    unread,
    Apr 17, 2025, 4:52:26 PMApr 17
    to goph...@pubsubhelper.golang.org, Damien Neil, Go LUCI, Gopher Robot, Daniel Martí, Ian Lance Taylor, golang-co...@googlegroups.com
    Attention needed from Ian Lance Taylor

    Joseph Tsai added 1 comment

    Patchset-level comments
    File-level comment, Patchset 3 (Latest):
    Joseph Tsai . resolved

    Updated code.json.zst to use the exact same binary as what @dneil is using in CL 665796.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ian Lance Taylor
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 3
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Thu, 17 Apr 2025 20:52:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joseph Tsai (Gerrit)

    unread,
    Jun 24, 2025, 12:37:15 PMJun 24
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Damien Neil and Ian Lance Taylor

    Joseph Tsai uploaded new patchset

    Joseph Tsai uploaded patch set #4 to this change.
    Following approvals got outdated and were removed:
    • Code-Review: +2 by Damien Neil
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    • Ian Lance Taylor
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 4
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Damien Neil <dn...@google.com>
    unsatisfied_requirement
    open
    diffy

    Joseph Tsai (Gerrit)

    unread,
    Jun 24, 2025, 12:37:39 PMJun 24
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Damien Neil and Ian Lance Taylor

    Joseph Tsai uploaded new patchset

    Joseph Tsai uploaded patch set #5 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    • Ian Lance Taylor
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 5
    unsatisfied_requirement
    open
    diffy

    Joseph Tsai (Gerrit)

    unread,
    Jun 24, 2025, 12:38:06 PMJun 24
    to goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Damien Neil, Go LUCI, Gopher Robot, Daniel Martí, golang-co...@googlegroups.com
    Attention needed from Damien Neil and Dmitri Shuralyov

    Joseph Tsai voted

    Auto-Submit+1
    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    • Dmitri Shuralyov
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 4
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Damien Neil <dn...@google.com>
    Gerrit-Attention: Dmitri Shuralyov <dmit...@golang.org>
    Gerrit-Comment-Date: Tue, 24 Jun 2025 16:38:02 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Dmitri Shuralyov (Gerrit)

    unread,
    Jun 24, 2025, 12:53:44 PMJun 24
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Go LUCI, Damien Neil, Gopher Robot, Daniel Martí, golang-co...@googlegroups.com
    Attention needed from Damien Neil and Joseph Tsai

    Dmitri Shuralyov voted and added 1 comment

    Votes added by Dmitri Shuralyov

    Code-Review+2

    1 comment

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Dmitri Shuralyov . resolved

    Thanks. (The cmd/go.TestScript/list_empty_importpath failure looks unrelated to the changes here.)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    • Joseph Tsai
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 5
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Damien Neil <dn...@google.com>
    Gerrit-Comment-Date: Tue, 24 Jun 2025 16:53:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dmitri Shuralyov (Gerrit)

    unread,
    Jun 24, 2025, 12:54:23 PMJun 24
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Go LUCI, Damien Neil, Gopher Robot, Daniel Martí, golang-co...@googlegroups.com
    Attention needed from Damien Neil and Joseph Tsai

    Dmitri Shuralyov voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    • Joseph Tsai
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
    Gerrit-Change-Number: 525516
    Gerrit-PatchSet: 5
    Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
    Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
    Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
    Gerrit-Attention: Damien Neil <dn...@google.com>
    Gerrit-Comment-Date: Tue, 24 Jun 2025 16:54:18 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Damien Neil (Gerrit)

    unread,
    Jun 24, 2025, 1:30:50 PMJun 24
    to Joseph Tsai, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Dmitri Shuralyov, Go LUCI, Gopher Robot, Daniel Martí, golang-co...@googlegroups.com
    Attention needed from Joseph Tsai

    Damien Neil voted Code-Review+2

    Code-Review+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joseph Tsai
    Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
      Gerrit-Change-Number: 525516
      Gerrit-PatchSet: 5
      Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
      Gerrit-Reviewer: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
      Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
      Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
      Gerrit-Reviewer: Gopher Robot <go...@golang.org>
      Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
      Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
      Gerrit-Comment-Date: Tue, 24 Jun 2025 17:30:46 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Damien Neil (Gerrit)

      unread,
      Jun 24, 2025, 1:32:44 PMJun 24
      to Joseph Tsai, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Dmitri Shuralyov, Go LUCI, Gopher Robot, Daniel Martí, golang-co...@googlegroups.com
      Attention needed from Joseph Tsai

      Damien Neil voted and added 1 comment

      Votes added by Damien Neil

      Auto-Submit+1
      TryBot-Bypass+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 2:
      Gopher Robot . resolved

      TryBots beginning. Status page: https://farmer.golang.org/try?commit=3b80926d

      Damien Neil

      Acknowledged

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Joseph Tsai
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
      Gerrit-Change-Number: 525516
      Gerrit-PatchSet: 5
      Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
      Gerrit-Reviewer: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
      Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
      Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
      Gerrit-Reviewer: Gopher Robot <go...@golang.org>
      Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
      Gerrit-Attention: Joseph Tsai <joe...@digital-static.net>
      Gerrit-Comment-Date: Tue, 24 Jun 2025 17:32:40 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Gopher Robot <go...@golang.org>
      satisfied_requirement
      open
      diffy

      Gopher Robot (Gerrit)

      unread,
      Jun 24, 2025, 1:33:02 PMJun 24
      to Joseph Tsai, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Damien Neil, Dmitri Shuralyov, Dmitri Shuralyov, Go LUCI, Daniel Martí, golang-co...@googlegroups.com

      Gopher Robot submitted the change

      Change information

      Commit message:
      encoding/json: use zstd compressed testdata

      There is a non-public zstd decoder in the stdlib (CL 473356) and
      also zstd compressed testdata already present.

      Delete testdata/code.json.gz and
      instead use internal/jsontest/testdata/golang_source.json.zst,
      which has exactly the same content:
      $ cat internal/jsontest/testdata/golang_source.json.zst | zstd -d | sha1sum
      3f70b6fd429f4aba3e8e1c3e5a294c8f2e219a6e -
      $ cat testdata/code.json.gz | zstd -d | sha1sum
      3f70b6fd429f4aba3e8e1c3e5a294c8f2e219a6e -

      This will reduce the size of the final Go release by 118KB.

      Updates #71845
      Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
      Auto-Submit: Damien Neil <dn...@google.com>
      Reviewed-by: Damien Neil <dn...@google.com>
      Reviewed-by: Dmitri Shuralyov <dmit...@google.com>
      Reviewed-by: Dmitri Shuralyov <dmit...@golang.org>
      TryBot-Bypass: Damien Neil <dn...@google.com>
      Files:
      • M src/encoding/json/bench_test.go
      • D src/encoding/json/testdata/code.json.gz
      Change size: XS
      Delta: 2 files changed, 3 insertions(+), 6 deletions(-)
      Branch: refs/heads/master
      Submit Requirements:
      • requirement satisfiedCode-Review: +2 by Dmitri Shuralyov, +1 by Dmitri Shuralyov, +2 by Damien Neil
      • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result-1 by Go LUCI, TryBot-Bypass+1 by Damien Neil
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I6da2df27bd260befc0a44c6bc0255365be0a5b0f
      Gerrit-Change-Number: 525516
      Gerrit-PatchSet: 6
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages