Skip to content

Commit

Permalink
fix: 使用最快压缩的方式节省初始化时间。(4m->1m)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugtower100 committed Dec 6, 2024
1 parent 9876321 commit 977c46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dice/HelpDocMap.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (h *HelpDocMap[K, V]) encode(value V) ([]byte, error) {
}

// 使用 zstd 编码数据
zEnc, err := zstd.NewWriter(nil, zstd.WithEncoderLevel(zstd.SpeedBetterCompression))
zEnc, err := zstd.NewWriter(nil, zstd.WithEncoderLevel(zstd.SpeedFastest))
if err != nil {
return nil, fmt.Errorf("failed to create zstd encoder: %w", err)
}
Expand Down

0 comments on commit 977c46b

Please sign in to comment.