- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for encSpeed (0.09 sec)
-
src/compress/flate/deflate.go
b = b[:len(a)] for i, av := range a { if b[i] != av { return i } } return max } // encSpeed will compress and store the currently added data, // if enough has been accumulated or we at the end of the stream. // Any error that occurred will be in d.err func (d *compressor) encSpeed() { // We only compress if we have maxStoreBlockSize. if d.windowEnd < maxStoreBlockSize { if !d.sync { return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 20.3K bytes - Viewed (0) -
src/compress/flate/deflate_test.go
} t.Logf("got %d bytes", len(out1)) } // TestBestSpeed tests that round-tripping through deflate and then inflate // recovers the original input. The Write sizes are near the thresholds in the // compressor.encSpeed method (0, 16, 128), as well as near maxStoreBlockSize // (65535). func TestBestSpeed(t *testing.T) { t.Parallel() abc := make([]byte, 128) for i := range abc { abc[i] = byte(i) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 25.6K bytes - Viewed (0)