Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 17214, Buffered StringStream and FileStream

by Danny Heijl Email: Anonymous

Provides buffered (fast) access to existing TStringStream or TFileStream classes using the "Decorator" pattern. TBufferedStringStream avoids costly ReallocMem calls.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 6.0 1094 downloads
Copyright: Open Source or other

Size: 4,371 bytes
Updated on Mon, 07 Apr 2003 11:29:16 GMT
Originally uploaded on Wed, 26 Dec 2001 06:00:31 GMT
SHA1 Hash: 82487A994F401D309E7557E48ECA31272F84D6ED
MD5 Hash: 07294221C64FA877E71B220947C47C1F

    Explore the files in this upload

TBufferedStringStream is from 2 to thousands of times faster than TStringStream (or long strings) when repeatedly appending many small strings. In addition, multithreaded applications running on multiprocessor machines avoid the performance hit of calling the Delphi memory allocator for each string append operation.

TBufferedFileStream is faster than TFileStream when writing many (small) strings by decreasing the number of system calls (the application buffers, not the OS).

Both classes can take an existing TStringStream or TFileStream in the constructor, following the "decorator" pattern.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04