18 Feb 2004 01:46
Re: [rfc] hide rs_buffers_t from public interface
Martin Pool <mbp <at> samba.org>
2004-02-18 00:46:51 GMT
2004-02-18 00:46:51 GMT
On 18 Feb 2004, Donovan Baarda <abo <at> minkirri.apana.org.au> wrote: > In any case, flush is potentialy useful for different types of flush, > as used in zlib. I haven't yet hit a case with librsync where I have > really needed this, but I have used it a fair bit in zlib, so I can > imagine a need for it. I probably prefer a seperate flush method, but > guess a flush parameter would be more consistant. That would be good. I think that's fairly orthogonal to this discussion? > > > 3) It allows the application to be in full control of memory buffers > > > to control and optimize memory usage. > > > > The library needs to do some dynamic allocation, so the application is > > not strictly in complete control. > > Yeah. but minimizing how much it allocates helps for those in > constrained memory land. Once again, not a biggie. Is anyone actually going to use it in a space where allocating 10s of kB of buffers is a problem? There are not many such machines around anymore. Presumably the hash lookups are going to be a bigger deal. > Nooo, not larger buffers....(Continue reading)> > The problem is, as it is currently implemented, you nearly always end > up with less than a complete block left in the internal buffer, so you > always have to copy into the internal buffer. The _only_ time you
>
> The problem is, as it is currently implemented, you nearly always end
> up with less than a complete block left in the internal buffer, so you
> always have to copy into the internal buffer. The _only_ time you
RSS Feed