Skip to content

table: improve selection bug and fixed insert issue#4872

Open
felixfeng33 wants to merge 11 commits intomainfrom
table-perf-selection
Open

table: improve selection bug and fixed insert issue#4872
felixfeng33 wants to merge 11 commits intomainfrom
table-perf-selection

Conversation

@felixfeng33
Copy link
Collaborator

@felixfeng33 felixfeng33 commented Mar 16, 2026

Summary

Improve table selection performance for large tables.

On the 40 x 40 (1600 cells) benchmark:

  • Selection latency mean: 425.00ms -> 174.62ms (-58.9%)
  • Selection latency median: 424.60ms -> 174.00ms (-59.0%)
  • Selection latency p95: 477.90ms -> 187.10ms (-60.8%)

Current snapshot also shows:

  • Input latency mean: 40.74ms
  • Remount benchmark mean: 841.44ms

@felixfeng33 felixfeng33 requested a review from a team March 16, 2026 10:21
@codesandbox
Copy link

codesandbox bot commented Mar 16, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@changeset-bot
Copy link

changeset-bot bot commented Mar 16, 2026

🦋 Changeset detected

Latest commit: 37da980

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@platejs/table Patch
@platejs/ai Patch
@platejs/csv Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Mar 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plate Ready Ready Preview, Comment Mar 21, 2026 3:45am

Request Review

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Mar 16, 2026
@felixfeng33 felixfeng33 changed the title table: speed up selection and hide native ranges table: speed up selection Mar 16, 2026
@dosubot dosubot bot added patch Bugfix & documentation PR performance issue plugin:table Tables labels Mar 16, 2026
@felixfeng33 felixfeng33 marked this pull request as draft March 17, 2026 16:38
@felixfeng33 felixfeng33 changed the title table: speed up selection table: improve selection bug and fixed insert issue Mar 17, 2026
# Conflicts:
#	apps/www/src/registry/ui/font-color-toolbar-button.tsx
@felixfeng33 felixfeng33 force-pushed the table-perf-selection branch from 58d3fba to ad57e78 Compare March 19, 2026 15:57
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer patch Bugfix & documentation PR performance issue plugin:table Tables size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants