dbTalk Databases Forums  

Question about the level of compression used in mysys/my_compress.c

mailing.database.mysql-internals mailing.database.mysql-internals


Discuss Question about the level of compression used in mysys/my_compress.c in the mailing.database.mysql-internals forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Question about the level of compression used in mysys/my_compress.c - 05-01-2006 , 08:00 PM






The function my_compress (in mysys/my_compress.c) uses the default level
of zlib compression when compressing network packets. For my
unscientific sample data 'gzip -1' is 2.5 to 3X faster than 'gzip' (the
default level of compression made the result file 25% smaller than the
fastest level). With a mysqld compiled to use the fastest level of zlib
compression, fetches of large amounts of data were faster when using the
fastest level of zlib compression rather than the default. These
results held even when the client and server were reasonably far apart
(ping time is 60ms).

My belief is that compression of network packets is more likely to be
useful when the fastest level of zlib compression is used. Of course,
MySql clients with really high latency connections to servers or uses
where network traffic is significantly more expensive than server CPU
time may disagree.

Are there clients that benefit from using the default level of zlib
compression?

--
Mark Callaghan
mcallaghan (AT) google (DOT) com

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.