Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 149 for compresse (0.34 sec)

  1. internal/config/compress/compress.go

    	cfg := Config{}
    	if err = config.CheckValidKeys(config.CompressionSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    	compress := env.Get(EnvCompressState, kvs.Get(config.Enable))
    	if compress == "" {
    		compress = env.Get(EnvCompress, "")
    	}
    	cfg.Enabled, err = config.ParseBool(compress)
    	if err != nil {
    		// Parsing failures happen due to empty KVS, ignore it.
    		if kvs.Empty() {
    			return cfg, nil
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5K bytes
    - Viewed (0)
  2. docs/compression/README.md

    ### 4. Excluded Types
    
    - Already compressed objects are not fit for compression since they do not have compressible patterns.
    Such objects do not produce efficient [`LZ compression`](https://en.wikipedia.org/wiki/LZ77_and_LZ78)
    which is a fitness factor for a lossless data compression.
    
    Pre-compressed input typically compresses in excess of 2GiB/s per core,
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. internal/config/compress/compress_test.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package compress
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestParseCompressIncludes(t *testing.T) {
    	testCases := []struct {
    		str              string
    		expectedPatterns []string
    		success          bool
    	}{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    	dnsDelimiter = "."
    	// On compressed files bigger than this;
    	compReadAheadSize = 100 << 20
    	// Read this many buffers ahead.
    	compReadAheadBuffers = 5
    	// Size of each buffer.
    	compReadAheadBufSize = 1 << 20
    	// Pad Encrypted+Compressed files to a multiple of this.
    	compPadEncrypted = 256
    	// Disable compressed file indices below this size
    	compMinIndexSize = 8 << 20
    )
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  5. api/go1.6.txt

    pkg debug/elf, const COMPRESS_HIOS = 1879048191
    pkg debug/elf, const COMPRESS_HIOS CompressionType
    pkg debug/elf, const COMPRESS_HIPROC = 2147483647
    pkg debug/elf, const COMPRESS_HIPROC CompressionType
    pkg debug/elf, const COMPRESS_LOOS = 1610612736
    pkg debug/elf, const COMPRESS_LOOS CompressionType
    pkg debug/elf, const COMPRESS_LOPROC = 1879048192
    pkg debug/elf, const COMPRESS_LOPROC CompressionType
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 13 23:40:13 GMT 2016
    - 12.9K bytes
    - Viewed (0)
  6. src/archive/zip/writer.go

    	return err
    }
    
    // RegisterCompressor registers or overrides a custom compressor for a specific
    // method ID. If a compressor for a given method is not found, [Writer] will
    // default to looking up the compressor at the package level.
    func (w *Writer) RegisterCompressor(method uint16, comp Compressor) {
    	if w.compressors == nil {
    		w.compressors = make(map[uint16]Compressor)
    	}
    	w.compressors[method] = comp
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  7. src/archive/zip/register.go

    func RegisterCompressor(method uint16, comp Compressor) {
    	if _, dup := compressors.LoadOrStore(method, comp); dup {
    		panic("compressor already registered")
    	}
    }
    
    func compressor(method uint16) Compressor {
    	ci, ok := compressors.Load(method)
    	if !ok {
    		return nil
    	}
    	return ci.(Compressor)
    }
    
    func decompressor(method uint16) Decompressor {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. src/archive/zip/example_test.go

    }
    
    func ExampleWriter_RegisterCompressor() {
    	// Override the default Deflate compressor with a higher compression level.
    
    	// Create a buffer to write our archive to.
    	buf := new(bytes.Buffer)
    
    	// Create a new zip archive.
    	w := zip.NewWriter(buf)
    
    	// Register a custom Deflate compressor.
    	w.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        frame.writeByte(Http2.TYPE_DATA)
        frame.writeByte(FLAG_COMPRESSED)
        frame.writeInt(expectedStreamId and 0x7fffffff)
        zipped.readAll(frame)
        assertFailsWith<IOException> {
          reader.nextFrame(requireSettings = false, BaseTestHandler())
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA")
        }
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  10. cmd/batch-job-common-types.go

    	line, col   int
    	Disable     *bool   `yaml:"disable" json:"disable"`
    	Batch       *int    `yaml:"batch" json:"batch"`
    	InMemory    *bool   `yaml:"inmemory" json:"inmemory"`
    	Compress    *bool   `yaml:"compress" json:"compress"`
    	SmallerThan *string `yaml:"smallerThan" json:"smallerThan"`
    	SkipErrs    *bool   `yaml:"skipErrs" json:"skipErrs"`
    }
    
    var _ yaml.Unmarshaler = &BatchJobSnowball{}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 01 21:53:26 GMT 2024
    - 7.9K bytes
    - Viewed (0)
Back to top