On Oct 29, 2006, at 12:38 PM, Mike Woodworth wrote:

hey all,

I have an app which needs to write a constant stream of info... 120kb each time, and it needs to return quickly so it can do the whole process over. every 40 or so writes, i seem to hit some bufferlimit and the next write takes as much as 20 times longer than the others. this seems to happen whether or not i call .flush after each write.

anyone have any ideas what i can do about this? i really need to return faster.

Create a "writer" thread
Append the data to the threads "list of stuff to write" and have the thread spew it out as fast as it can Your main app deals only with the writer thread thus writing as fast as possible and the thread writes data to the file as fast as it can and neither slows the other down
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to