[fpc-pascal] Getting fast output
Peter Vreman
peter at freepascal.org
Mon Jul 21 07:45:53 CEST 2008
>
> Is there any way so that Write(Ln) doesn't flush the buffer after each call
> (as if it's called to write to a file, I knew it from rtl's file handling
> source), but only when Flush is called? I found some maniac's code that does
> it at assembler level, but of course it's platform dependant (i386-linux
> only). Currently, I get it through the use of:
> TextRec(<TextVar>).FlushFunc:=nil;
> but this forces me to use SysUtils which increase the executable size
> significantly. If this is the only solution, then please move the record to
> System unit (if possible, with FileRec too).
http://www.freepascal.org/docs-html/rtl/system/settextbuf.html
More information about the fpc-pascal
mailing list