To see the speed difference, lets run a test! Firstly, using the old style of Read/Write using TFileStream and secondly compared to TBufferedFileStream. In other words, TBufferedFileStream adds buffering support to TFileStream.Īs TBufferedFileStream descends from TFileStream it is a simple replacement to add it into your applications and gain the speed benefits it brings. TBufferedFileStream is a TFileStream descendant that optimises multiple consecutive small writes or reads. Well, it seems it was too good to keep hidden and with the release of 10.1 Berlin, this has been moved from to System.Classes and has been renamed to TBufferedFileStream. Part of the very fast FireDAC database component library is TFDFileStream,a class that allows high performance access to trace files, (TFDMoniFlatFileClientLink), text data file reading (TFDBatchMoveTextReader / TFDBatchMoveTextWrtiter), SQL Script file reading (TFDScript) and data serialization to file (TFDMemTable etc). Buffering the File Stream in Delphi / C++ Builder
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |