#4 Re: Low level and performance » How to write fast multi-thread Delphi applications » 2014-09-07 02:50:39

Don't create a TMemoryStream each time you need one, but rely on a private instance in your class, already sized in enough memory, in which you will write data using Position to retrieve the end of data and not changing its Size property (which will be the memory block allocated by the MM);

can you share some sample code ?  tks

Board footer

Powered by FluxBB