Open shaungrady opened 2 months ago
Thanks for the report. Let’s revert this for now and explore a better solution. Please open a PR at your earliest convenience.
Sounds good, @zbeyens! I'm not sure how soon I can get to this, so please don't wait on me if you need this addressed urgently.
@shaungrady Which version of react you are using btw?
@dimaanj Good question: 18.2.0
Description
Migrating from
30.5.3
to33.0.0
, I'm noticing a huge decrease in the performance of theserializeHtml
call. It looks like it occurred with the change in this PR: https://github.com/udecode/plate/pull/3149I've attached below profiles for the
serializeHtml
call in the old and new versions with a document consisting of 107 root child nodes.v30.5.3 (108ms)
v33.0.0 (1.2s)
Steps to Reproduce
Create a decently sized document of 100+ nodes, execute the serialize call.
Expected Behavior
Environment
Bounty
Click here to add a bounty via Algora.
Funding