History of file src/0dev.org/commands/pdc/main.go at check-in 4f0d26907d45681f
2014-12-25
| ||
01:25 | Removed pdc's output buffer when decompressing as io.Copy uses a sufficiently-large buffer internally. file: [9aabc03cac] check-in: [2b1ed8e45e] user: spaskalev, branch: trunk, size: 1588 [annotate] [blame] [check-ins using] [diff] | |
2014-12-24
| ||
23:58 | 0dev.org/ioutil/SizedReader is now as fast as bufio.Reader if not faster for a buffer of 4096 bytes. Switched pdc to use it for decompression buffering and removed profiling code from the former file: [dfe0b7b6cf] check-in: [2cec92909f] user: spaskalev, branch: trunk, size: 1798 [annotate] [blame] [check-ins using] [diff] | |
23:45 | Extracted SizedReader to a sizedReader type with a Read() method. Closures seem to be slower in Go 1.4 and there is no real need for SizedReader to be a closure. file: [675059111f] check-in: [b703c38e0b] user: spaskalev, branch: trunk, size: 1932 [annotate] [blame] [check-ins using] [diff] | |
22:32 | Use 0dev.org/ioutil.SizedWriter as an output buffer for pdc in both compress and decompress modes. file: [1dda5424c0] check-in: [1717bfae3b] user: spaskalev, branch: trunk, size: 1776 [annotate] [blame] [check-ins using] [diff] | |
2014-12-20
| ||
17:44 | Buffer the input on decompressing, not the decompressor itself. This takes pdc -d < linux-3.18.1.tar.pdc > linux-3.18.1.tar down to 11 seconds from 13 minutes :) file: [c6f8b3fe28] check-in: [4f0d26907d] user: spaskalev, branch: trunk, size: 1751 [annotate] [blame] [check-ins using] [diff] | |
2014-12-19
| ||
21:54 | Added: Implemented commands/pdc using predictor. Made predictor's Compressor(...) return an io.Writer. file: [3c0c8016e1] check-in: [c9f3a59cb6] user: spaskalev, branch: trunk, size: 1751 [annotate] [blame] [check-ins using] | |