[fpc-devel] TBufferedFileStream
silvioprog
silvioprog at gmail.com
Sun Sep 4 00:23:58 CEST 2016
On Sat, Sep 3, 2016 at 5:28 PM, José Mejuto <joshyfun at gmail.com> wrote:
[...]
> ... Typical example is TFileStream.GetByte which I'm using in a parser,
> because the file could be very big, and I don't want to read everything in
> a TMemoryStream, performance of cache/buffered and regular is dramatically
> different:
>
> ----------------------------------------------
> CACHE 1000000 byte sequential reads in 46 ms.
> FILE 1000000 byte sequential reads in 2200 ms.
> ----------------------------------------------
>
[...]
Did you get this result from some sample? If so, could you share it?! I
would be glad to test it checking the TBufferedFileStream performance. :-)
--
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160903/e28c0342/attachment.html>
More information about the fpc-devel
mailing list