getData
can be very slow depending on content
#14245
Labels
domain:performance
This issue reports a problem or potential improvement regarding editor performance.
package:watchdog
resolution:expired
This issue was closed due to lack of feedback.
type:bug
This issue reports a buggy (incorrect) behavior.
getData
can be very slow depending on content📝 Provide detailed reproduction steps (if any)
run the following code in the demo
✔️ Expected result
getData
returns in reasonable time and is possibly even cached until the model is changed so subsequent calls return in less time❌ Actual result
❓ Possible solution
It appears this problem was explored some time ago and this issue was predicted. #5812
📃 Other details
This issue is happening in our production environment with customer data.
The html used in the script above was generated to demonstrate the performance issue.
In our implementation we use
@ckeditor/ckeditor5-react
.This issue is compounded by the fact that it uses Watchdog which has a
_save
method that calls
getData
. This is throttled, but effectively pauses interactionfor the duration of the call every 5 seconds.
We also use the react CKEditor as a controlled component, storing the content and passing it
as the
data
prop, then updating it when theonChange
callback is invoked. In addition tous calling
getData
in the onchange callback, it is again called in_shouldUpdateEditor
when the react CKEditor component receives the new props.
I considered submitting this issue to the ckeditor/ckeditor5-react repo, but I think the issue
from four years ago highlights that the root cause is in
getData
and that any framework thatuses two way binding will suffer the same issue.
The text was updated successfully, but these errors were encountered: