On Wed, 14 Jun 2006, George Birbilis wrote:
This would raise a simple basic question... why FPC doesn't
also use
4K buffer? If it'd improve I/O performance a lot. Any specific
technical reasons why FPC decide to allocate 256 byte for
I/O buffer?
Yes. TP compatibility. The "Text" internal record contains the buffer.
Could have a compiler switch for the user to select that buffer size I
suppose (the switch would set some compiler constant and then the compiler
would see it and recompile/link the needed file[s])
That's not how it works.
The records used to describe text files cannot be dynamically changed in size.
For optimized IO, use streams, or use SetTextBuf()
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives