Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Performance is getting worse

Post Reply
R. Eisenkolb
Posts: 3
Joined: Fri May 14, 2021 8:13 am

Performance is getting worse

Post by R. Eisenkolb »

Hello Salvador,

we use Chromium/CEF4D in our Delphi application to load an HTML editor (CK Editor 4, https://ckeditor.com/ckeditor-4/) and i.e. to write an email there.
We control this editor from Delphi by calls of java script and get results by TChromium.OnProcessMEssageReceived.

So far so good.
we update Chromium periodically. In doing so we observed that Chromium in general is getting slower and slower.
The initial loading of an email into the editor takes more than double of time using Chromium 112 than using Chromium 106. And it's getting worse with Chromium 118.
We have exact the same code, we use the same environment, only the code of Chromium we swapped.
That way we could ensure that the degradation was caused by Chromium.

We are helpless what to do. Our scenario is so special that we cannot isolate this in a small sample application und send it to you.

For this reason we attached two CEF-logfiles: One from Chromium 106, the other from Chromium 118.
I.e. in the specific case an image schema%20gw%20produkte%20und%20server%20.png is loaded.

(see also line [0115/111919.193:VERBOSE1:file_url_loader_factory.cc(451)] FileURLLoader::Start: file:///C:/Users/Barbara.Sobieray/AppData/Local/Temp/genesisWorld/ckeditor/0x97A875E0106A42BB905AA5ECDF988186/schema%20gw%20produkte%20und%20server%20.png
or line [0115/113321.293:VERBOSE1:file_url_loader_factory.cc(452)] FileURLLoader::Start: file:///C:/Users/Barbara.Sobieray/AppData/Local/Temp/genesisWorld/ckeditor/0x2B0A02D0F605419E8130A4199CB5BF9C/schema%20gw%20produkte%20und%20server%20.png
).

With Chromium 106 this job was done in some hundred milliseconds.
With Chromium 118 it lasts more than two seconds.

Do you know anything that the overall performance of chromium decreased significantly? And why?

Thanks in advance
Reinhard
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Performance is getting worse

Post by salvadordf »

Hi,

I don't see any warnings or errors in the logs but I see that CKEditor4 reached its End-of-Life in June 2023.
Since then it's not getting any bug fix and this might be one of them.

This might also be caused by a recent internal change in Chromium. It's continuously evolving and old software may not be ready for the new changes.

Even the newer CKEditor 5 had multiple performance issues :
https://github.com/ckeditor/ckeditor5/issues?q=is%3Aissue+slow

I would recommend upgrading to a CKEditor version with active support or replacing the editor with a different lightweight editor.

Some links with performance guidelines and issues :
https://ckeditor.com/blog/CKEditor-Loading-performance-details/
https://stackoverflow.com/questions/68838824/typing-performance-in-ckeditor4-on-chrome-is-low-input-is-lagging-on-large-text
Post Reply