Re: A little coding style nugget of joy

2007-09-20 Thread Scott Preece
On 9/20/07, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > On Thu, 20 Sep 2007, Pádraig Brady wrote: > > > Matt LaPlante wrote: > > > Since everyone loves random statistics, here are a few gems to give you a > > > break from your busy day: > > > > > > Number of lines in the 2.6.22 Linux kernel sour

Re: A little coding style nugget of joy

2007-09-20 Thread Robert P. J. Day
On Thu, 20 Sep 2007, Pádraig Brady wrote: > Matt LaPlante wrote: > > Since everyone loves random statistics, here are a few gems to give you a > > break from your busy day: > > > > Number of lines in the 2.6.22 Linux kernel source that include one or more > > trailing whitespaces: 135209 > > Byt

Re: A little coding style nugget of joy

2007-09-20 Thread Pádraig Brady
Matt LaPlante wrote: > Since everyone loves random statistics, here are a few gems to give you a > break from your busy day: > > Number of lines in the 2.6.22 Linux kernel source that include one or more > trailing whitespaces: 135209 > Bytes saved by removing said whitespace: 151809 > Lines in

Re: A little coding style nugget of joy

2007-09-19 Thread Andy Lutomirski
Andi Kleen wrote: Matt LaPlante <[EMAIL PROTECTED]> writes: Since everyone loves random statistics, here are a few gems to give you a break from your busy day: Number of lines in the 2.6.22 Linux kernel source that include one or more trailing whitespaces: 135209 Bytes saved by removing said

Re: A little coding style nugget of joy

2007-09-19 Thread Andrew Lutomirski
On 9/19/07, Andi Kleen <[EMAIL PROTECTED]> wrote: > > This is a terrible assumption in general (i.e. if filesize % blocksize > > is close to uniformly distributed). If you remove one byte and the data > > is stored with blocksize B, then you either save zero bytes with > > probability 1-1/B or you

Re: A little coding style nugget of joy

2007-09-19 Thread Andi Kleen
> This is a terrible assumption in general (i.e. if filesize % blocksize > is close to uniformly distributed). If you remove one byte and the data > is stored with blocksize B, then you either save zero bytes with > probability 1-1/B or you save B bytes with probability 1/B. The > expected nu

Re: A little coding style nugget of joy

2007-09-19 Thread Andi Kleen
Matt LaPlante <[EMAIL PROTECTED]> writes: > Since everyone loves random statistics, here are a few gems to give you a > break from your busy day: > > Number of lines in the 2.6.22 Linux kernel source that include one or more > trailing whitespaces: 135209 > Bytes saved by removing said whitespa