|
From: Dair G. <da...@re...> - 2004-06-13 20:33:26
|
James W. Walker wrote: >Memory storage objects grow linearly, but it is well known that you >get better performance if you grow buffers exponentially (e.g., double >the size each time you need to grow.) Although that does mean you potentially end up paging more as your buffers are growing, well, exponentially. :-) >Shall I make exponential growth an option, or just change the=20 >standard behavior? I can't think of any reason that existing=20 >software would be hurt by the change. I've used x1.5in the past quite successfully: buffers grow quickly if they're being appended to, but you don't have such big jumps like 128->256Mb, 256Mb->512Mb, etc. I thought we were actually using 1.5 already, but it appears not. I can't see it breaking anything either though, so go ahead: worst case is that we find another case where the memory balloons a bit, in which case we can add something like a usage hint to give some idea of what the storage object will be used for. -dair ___________________________________________________ mailto:dair+refnum.com http://www.refnum.com/ |