I have done that. However, one of the most profound features of our product is to support 10k connections concurrently. If I use a large buffer, it would consume GBs of RAM. (and this is 32-bit process thanks to Borland/CG/Embarcadero). If I use a small buffer it would mean a waste of resources as the benefit is small. I think I will rely on Windows caching for this. Or maybe play with it within my test app...
Regards, SZ On Sun, Oct 25, 2009 at 2:40 PM, Arno Garrels <arno.garr...@gmx.de> wrote: > > ----- Original Message ----- > From: "Fastream Technologies" <ga...@fastream.com> > To: "ICS support mailing" <twsocket@elists.org> > Sent: Sunday, October 25, 2009 11:40 AM > Subject: Re: [twsocket] > TFileStreamreplacementinOverbyteIcsStreams--whichclass is generic? > > > > Hello, > > > > My buffer size is 8/16kBytes for write/read. How much RAM would this > buffer > > use per instance? > > It's possible to set the buffer size. You may want to take a look at > the OverbyteIcsBufStrmTst test application in MiscDemos folder. > > -- > Arno Garrels > > > > > Regards, > > > > SZ > > > > > > On 10/25/09, Arno Garrels <arno.garr...@gmx.de> wrote: > >> > >> Fastream Technologies wrote: > >> > We already have RAM cache component in-house. I just need a fast > >> > read/write buffered file stream component but can ICS components > >> > either read or write only? > >> > >> No, TIcsBufferedStream is capable to read and write, performance > >> however is a little bit worse if it's not set to read-only. > >> Note that a buffered stream benefits most when read and write > >> blocks are very small. Using a large blocksize with unbuffered > >> I/O was faster. > >> > >> -- > >> Arno Garrels > >> > >> > >> > > >> > Regards, > >> > > >> > SZ > >> > > >> > > >> > On 10/24/09, Arno Garrels <arno.garr...@gmx.de> wrote: > >> >> > >> >> Fastream Technologies wrote: > >> >>> Hello, > >> >>> > >> >>> What I mean with "disk cache": It is something similar to Squid has. > >> >>> Basically write responses to disk and read from there when not in > >> >>> RAM cache. > >> >> > >> >> No, that's something totaly different. > >> >> What you probably need is a real cache with fast lookup capabilities. > >> >> Squid is AFAIK OS so you could look at their source and see what > >> >> data structure they use for this purpose. > >> >> > >> >> -- > >> >> Arno Garrels > >> >> > >> >> -- > >> >> To unsubscribe or change your settings for TWSocket mailing list > >> >> please goto > http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > >> >> Visit our website at http://www.overbyte.be > >> > > -- > > To unsubscribe or change your settings for TWSocket mailing list > > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be