in reply to Re: Ideal buffer size..
in thread Ideal buffer size..

Thansk, waswas-fng!

Is there a generic size that fits all?

:)

Replies are listed 'Best First'.
Re^3: Ideal buffer size..
by Anonymous Monk on Apr 22, 2004 at 05:17 UTC

    For this particular case, any number would work fine really. If you want to be part of the "in-crowd", just use a multiple of 1024 (the 16384 you see in that code is 1024*16). It's really up to you though... depends on how much memory you want to use up at any given time.

Re: Re: Re: Ideal buffer size..
by William G. Davis (Friar) on Apr 22, 2004 at 05:16 UTC

    Of course not :)

    But most OS's seem to use 4096 bytes (that is, four kilobytes), so you should be OK with that.

      Thanks William!

      I've changed the buffer size ot 4096 :)