Table block performance with large number of rows #30091
Labels
[Block] Table
Affects the Table Block
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Performance
Related to performance efforts
Description
The Core Table block has performance issues when it contains a large number of rows and data. I have several pages with 800+ table rows and 2-4 columns each. When attempting to edit text in the editor, the typing is a few seconds behind the actual keystrokes. It's almost as if there is a few seconds of latency before the editor can process what the user is typing. The tables contain pure text, with a text link in the last column for each row, so no very complex content included.
I have tested this on a fresh WP install with no additional plugins. The experience was slightly better, however there was still a noticeable delay when attempting to type. Instead of a ~3 second delay, there was a ~1-2 second delay. The client who reported this issue has experienced up to a ~5-10 second delay when editing large tables. On the production environment I would assume this to be longer due to the other blocks on the page, however in a fresh WP install I would not expect any kind of performance issues with this.
I am not sure if this is caused by the actual table block, or if this is a problem with the Block Editor in general when there is that much content. All of the other pages that do not contain a large table like this are loading and editing as expected, though.
Step-by-step reproduction instructions
Expected behaviour
The expected behavior here is that the Block Editor will process typing as normal without any input lag.
Actual behaviour
When editing the contents of a large table, typing causes input lag between the keyboard and block editor. Clicking on any cell in a large enough table, and attempting to type additional words (or edit existing), you will see a delay between the keypress action and the character rendering on screen.
Screenshots or screen recording (optional)
In the GIF below, when the cursor disappears is when I begin typing. You will see my words show up when completed, rather than individually. This was taken on a completely fresh install of WP.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: