Loading RTF Text needs much time

General TRichView support forum. Please post your questions here
Post Reply
WLemmermeyer
Posts: 4
Joined: Fri Jun 06, 2014 5:32 am
Location: Germany

Loading RTF Text needs much time

Post by WLemmermeyer » Tue Nov 14, 2017 1:29 pm

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

Sergey Tkachenko
Site Admin
Posts: 13830
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Loading RTF Text needs much time

Post by Sergey Tkachenko » Tue Nov 14, 2017 3:16 pm

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.

WLemmermeyer
Posts: 4
Joined: Fri Jun 06, 2014 5:32 am
Location: Germany

Re: Loading RTF Text needs much time

Post by WLemmermeyer » Tue Nov 14, 2017 4:15 pm

As I mentioned it is the same RTF. I'm looking if I can send you the rtf

Post Reply