Buffer growth, lazy opitimization

François Pinard pinard at iro.umontreal.ca
Wed May 1 18:54:19 EDT 2002


[Stephen D Evans]

> Learning from other people's experience I tend to use a factor of 1.5
> for buffer size increments.

I often use 1.414 (sqrt(2)), so the buffer doubles its size at every
other growth.  I find this aesthetic, there is no real other reason! :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard





More information about the Python-list mailing list