摘要 |
The techniques are provided automatically detecting when performing pre-transmission compression on data to be sent over a network connection will be preferable to sending the data uncompressed, and for automatically performing pre-transmission compression only when doing so is determined to be beneficial. The techniques involve performing compression on sample data. The time it takes to perform the compression on the sample data, along with the reduction in size achieved by the compression, are factors used to automatically determine whether compressing data before sending the data over a network connection will achieve better results that sending the data uncompressed. In some embodiments, multiple compression algorithm/compression level combinations are tested at different points in the transmission. At each point, the sending device may switch to the algorithm/level combination that is producing the best results on the current sample.
|