trichview.support
Re: SaveRVFToStream slow? |
Author |
Message |
Holger Warzelhan |
Posted: 08/24/2004 21:36:00 Hello Sergey, I ended up creating a descendant of TMemoryStream, which does the job with the desired speed. It is really related to the memory allocation of the TMemoryStream, which is trying to use as little memory as possible. Thank you for the hint in the right direction! Holger "Sergey Tkachenko" <[email protected]> wrote: >So this is a limitation of TMemoryStream, I'm afraid. >May be it's because it reallocates memory many times when writting. > >Ideas... Try to use Stream.SetSize to set stream size so that it can contain >the whole RVF before saving. When set Stream.Position = 0, save RVF, then >SetSize(Stream.Position). >May be it will be faster. > > |
Powered by ABC Amber Outlook Express Converter