Page 1 of 1

PB4 - Improved File Library

Posted: Thu Mar 23, 2006 3:50 am
by va!n
from the v4 readme i can take the following info:

"File library completely rewritten And now handle a Read/write cache For very fast performances. Also support For 64 bits files."

Thanks to the pureteam for this nice performance optimisations! Btw, i think you are using a 32k buffer or something!? It would be great, if the so called buffer can be user defined! So people writing programs for big movies or big files can use a bigger buffer. just an idea ^^

Posted: Thu Mar 23, 2006 4:01 am
by Dare2
Hi va!n,

Yes, the file library is great!

For buffers, From the help:

Syntax
  • FileBuffersSize(#File, Size)
Description
  • Change the size of the buffers for the specified file. This method is available for advanced users, to allow to tune the file access performances. The default buffer size is 4096 bytes per file. If the 'Size' is put to 0, then all caching is disabled, and all write operations are immediately written to the disk. For performance reason, the buffer size should be kept large enough (1028 seems to be ok as minimum). When buffers are used, the information is really written to the disk once the cache buffer is full or when the file is closed.


Is that what you were wanting, or did I get it wrong.

Posted: Sat Mar 25, 2006 5:01 am
by va!n
ah, thanks! i have taked a look to the readme but didnt foud something! So many thanks for the info ^^