[fpc-pascal] Getting fast output
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Jul 22 12:25:39 CEST 2008
On 22 Jul 2008, at 08:06, Jonas Maebe wrote:
> On 22 Jul 2008, at 06:29, leledumbo wrote:
>
>> Peter Vreman wrote:
>>>
>>> http://www.freepascal.org/docs-html/rtl/system/settextbuf.html
>>> http://www.freepascal.org/docs-html/rtl/system/settextbuf.html
>>>
>> Oh, yeah! I forgot to mention this. But declaring the buffer will
>> eat spaces
>> ,for instance:
>> ...
>> var
>> Buf: array [0..65535] of Byte;
>> ...
>> will add 64k to the executable because it's allocated on the stack.
>
> You can also allocate it on the heap.
But that won't help you in this case, because settextbuf does not
change the flushing behaviour when writing to the screen. For that,
you have to follow Tomas' advice.
Jonas
More information about the fpc-pascal
mailing list