On 07/24/10 10:04, Peter Korsgaard wrote:
beebee>  The lighttpd strategy of keeping a cache of compressed files is
  beebee>  interesting.  In any case if there is support for sending gz
  beebee>  compressed "if a pre-compressed file is available" it seems odd
  beebee>  not to do the compression is if needed.

While we could certainly do something like that, I don't we really need
to. Busybox's goal is cleary to keep things as simple as possible, and
doing a simple


for i in `find /var/www -name \*.html' -o -name '*.css' -o -name '*.js'`;
do
         gzip -c -9<  $i>  $i.gz
done

Would work for most people.

-- Bye, Peter Korsgaard

correct me if I'm wrong but I thought the BB goal was light and fast rather than "simple". Missing out some of the less used options in std tools is presumably to lighten the footprint , not to make things simple.

while it may take a few lines more code to check and maintain a cache the runtime overhead would be minimal compared to the overhead of gzipping files each and every time they are requested.

lighttpd don't do this for bloat , thier lietmotif is also light , hence the name.

regards.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to