Loading RTF Text needs much time
Posted: 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:
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
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;
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