Page 1 of 1

Loading RTF Text needs much time

Posted: Tue Nov 14, 2017 1:29 pm
by WLemmermeyer
Hello,

a customer uses my application to show/edit/save RTF Text. This app has a really bad performance on the computer of the customer (i5 6400, 12 GByte RAM, Radeon R9, SSD with Windows 10 Home). This method runs more than 6 seconds:

Code: Select all

procedure TFrmProtokoll.SetEditorText(const Value: String);
var Stream: TStringStream;
begin
  Stream := TStringStream.Create(Value);
  try
    Stream.Position := 0;
    RichViewEdit1.Clear;
    RichViewEdit1.LoadRTFFromStream(Stream);
    RichViewEdit1.Format;
    RichViewEdit1.Enabled := true;
  finally
    Stream.Free;
  end;
end;
on my computer (Windows 10 Prof on VMWare Workstation, 10 Gbyte RAM, i7 4770) it needs (with the same data, same application) round about 400 ms.

I have absolut no idea what's the reason for this behaviour. Actual we use RichViewEdit V15, today I install the new V17 - same effect. Maybe someone here have an idea?

Best regards

Re: Loading RTF Text needs much time

Posted: Tue Nov 14, 2017 3:16 pm
by Sergey Tkachenko
It depends on RTF file. Some RTF files may be loaded even slower. It's take long to load such RTF files in MS Word as well (MS Word displays first pages before the complete loading, which can take long).
You can send me this RTF file for testing, email is richviewgmailcom.

Re: Loading RTF Text needs much time

Posted: Tue Nov 14, 2017 4:15 pm
by WLemmermeyer
As I mentioned it is the same RTF. I'm looking if I can send you the rtf