Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Utilizer
This problem is simple.

Generally, you should set a buffer size of 4-16K and format your app's output directly into the buffer, if possible. You may wish to use multiple 4-16K buffers, so that you are writing into the current buffer while one of your past buffers is being transferred to disk asynchronously. When you fill the current buffer, it should be queued for output, and you should switch your output-formatting activity to scribble on a previous buffer which has already been written. When you are done, you should remember to queue your final buffer for output and wait until all buffers have been written. Then please close the file.

The optimal buffer size and number of buffers should be determined by experiment.

48 posted on 03/26/2015 11:45:38 PM PDT by cynwoody
[ Post Reply | Private Reply | To 1 | View Replies ]


To: cynwoody

Thanks for the tip, mate. :)


49 posted on 03/26/2015 11:55:09 PM PDT by Utilizer (Bacon A'kbar! - In world today are only peaceful people, and the muzlims trying to kill them)
[ Post Reply | Private Reply | To 48 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson