[CherryPy] #903: default gzip compress_level

1 view
Skip to first unread message

CherryPy

unread,
Feb 17, 2009, 9:42:14 AM2/17/09
to cherrypy...@googlegroups.com
#903: default gzip compress_level
---------------------------+------------------------------------------------
Reporter: m@ | Owner: fumanchu
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: CherryPy code | Keywords:
---------------------------+------------------------------------------------
The default gzip compress_level of 9 is silly. I suggest it be set to 5 or
6 at most, as the added benefits of higher levels are extremely small
while the added cpu time is substantial. See
http://changelog.complete.org/archives/910-how-to-think-about-compression
as well as gzip's manpage.

In lib/encoding.py:
def gzip(compress_level=9, mime_types=['text/html', 'text/plain'])

--
Ticket URL: <http://www.cherrypy.org/ticket/903>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework

CherryPy

unread,
Mar 18, 2009, 1:04:41 AM3/18/09
to cherrypy...@googlegroups.com
#903: default gzip compress_level
---------------------------+------------------------------------------------
Reporter: m@ | Owner: fumanchu
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: CherryPy code | Resolution: fixed
Keywords: |
---------------------------+------------------------------------------------
Changes (by visteya):

* resolution: => fixed
* status: new => closed

Comment:

changed default value for compress_level to 5. closed with r2152
Reply all
Reply to author
Forward
0 new messages