iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
We noticed a very high CPU usage when processing big html document with WebTextEditor.
We did a profiling with Chrome and we were able to target that the issue is a replace made with a regex in WebTextEditor_Helper.js in WebTextEditorConvertEngine.ConvertToXHTML.
You can try it with the HTML content I attached in a txt file. I also provided you the profiling session I used in Chrome, you will be able to see the stack where it takes more than 40 sec.
Regards,
Alex
I modified SaveAndLoadContentToFile.aspx sample file of WebTextEditor and load provided sample content by invoking LoadContentFromFile(string fileName, bool isCompleteHTML) method in button click event. Save the changes and view the page in Chrome 51 with CPU Profiling started.
I checked on the regex function in WebTextEditor_Helper.js in WebTextEditorConvertEngine.ConvertToXHTML, and found that it took 254.2 ms. I enclosed the CPU Profile (as attachment) for your reference.
The test was performed on: WebTextEditor 3 (3.0.1000.18); WebUI.NET Framework 3.0 (3.0.5000.975); and Chrome 51.
Please feel free to let me know if you find anything that I might miss during my attempt to reproduce the reported problem.
Hi Yudi,
can you send me your sample application, I will do some test on my end.
Please find the sample in the attachment. I have added the required assembly files in the Bin folder.
Please feel free to let me know if you have different result.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname