![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
The function my_compress (in mysys/my_compress.c) uses the default level=20 of zlib compression when compressing network packets. For my=20 unscientific sample data 'gzip -1' is 2.5 to 3X faster than 'gzip' (the=20 default level of compression made the result file 25% smaller than the=20 fastest level). With a mysqld compiled to use the fastest level of zlib=20 compression, fetches of large amounts of data were faster when using the=20 fastest level of zlib compression rather than the default. These=20 results held even when the client and server were reasonably far apart=20 (ping time is 60ms). =20 My belief is that compression of network packets is more likely to be=20 useful when the fastest level of zlib compression is used. Of course,=20 MySql clients with really high latency connections to servers or uses=20 where network traffic is significantly more expensive than server CPU=20 time may disagree. |

![]() |
| Thread Tools | |
| Display Modes | |
| |