Re: [PATCH 5/6] nvram: Slim down zlib_deflate workspace when possible

2011-02-06 Thread Benjamin Herrenschmidt
On Sat, 2010-11-13 at 20:15 -0800, Jim Keniston wrote: > Instead of always creating a huge (268K) deflate_workspace with the > maximum compression parameters (windowBits=15, memLevel=8), allow the > caller to obtain a smaller workspace (24K in our case) by specifying > smaller parameter values -- v

[PATCH 5/6] nvram: Slim down zlib_deflate workspace when possible

2010-11-13 Thread Jim Keniston
Instead of always creating a huge (268K) deflate_workspace with the maximum compression parameters (windowBits=15, memLevel=8), allow the caller to obtain a smaller workspace (24K in our case) by specifying smaller parameter values -- via zlib_deflate_workspacesize2(). In our case, a small workspac