loading up the forgejo repo on tangled to test page performance
at forgejo 1.7 kB view raw
1// Copyright 2024 The Gitea Authors. All rights reserved. 2// SPDX-License-Identifier: MIT 3 4package zstd 5 6import "github.com/klauspost/compress/zstd" 7 8type WriterOption = zstd.EOption 9 10var ( 11 WithEncoderCRC = zstd.WithEncoderCRC 12 WithEncoderConcurrency = zstd.WithEncoderConcurrency 13 WithWindowSize = zstd.WithWindowSize 14 WithEncoderPadding = zstd.WithEncoderPadding 15 WithEncoderLevel = zstd.WithEncoderLevel 16 WithZeroFrames = zstd.WithZeroFrames 17 WithAllLitEntropyCompression = zstd.WithAllLitEntropyCompression 18 WithNoEntropyCompression = zstd.WithNoEntropyCompression 19 WithSingleSegment = zstd.WithSingleSegment 20 WithLowerEncoderMem = zstd.WithLowerEncoderMem 21 WithEncoderDict = zstd.WithEncoderDict 22 WithEncoderDictRaw = zstd.WithEncoderDictRaw 23) 24 25type EncoderLevel = zstd.EncoderLevel 26 27const ( 28 SpeedFastest EncoderLevel = zstd.SpeedFastest 29 SpeedDefault EncoderLevel = zstd.SpeedDefault 30 SpeedBetterCompression EncoderLevel = zstd.SpeedBetterCompression 31 SpeedBestCompression EncoderLevel = zstd.SpeedBestCompression 32) 33 34type ReaderOption = zstd.DOption 35 36var ( 37 WithDecoderLowmem = zstd.WithDecoderLowmem 38 WithDecoderConcurrency = zstd.WithDecoderConcurrency 39 WithDecoderMaxMemory = zstd.WithDecoderMaxMemory 40 WithDecoderDicts = zstd.WithDecoderDicts 41 WithDecoderDictRaw = zstd.WithDecoderDictRaw 42 WithDecoderMaxWindow = zstd.WithDecoderMaxWindow 43 WithDecodeAllCapLimit = zstd.WithDecodeAllCapLimit 44 WithDecodeBuffersBelow = zstd.WithDecodeBuffersBelow 45 IgnoreChecksum = zstd.IgnoreChecksum 46)