GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — ⚡ Bolt: Optimize ProseMirror decoration keys to eliminate layout thrashing by dezren39 · Pull Request #208 · developing-today/code Conversation
Member
💡 What: Refactored 🎯 Why: Previously, the use of an auto-incrementing random generation for widget keys forced ProseMirror to unmount and remount every single cursor DOM node upon any update or keystroke, completely negating ProseMirror's diffing engine. 📊 Impact: Massively reduces layout thrashing and DOM operations during collaborative editing, reducing CPU spike on keystrokes and improving overall typing responsiveness when multiple cursors are visible. 🔬 Measurement: Verify by recording a performance profile in the browser devtools while typing or while remote cursors move. You should observe significantly fewer forced reflows and DOM mutations within the ProseMirror nodeview. PR created automatically by Jules for task 7337461212199327037 started by @dezren39
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…ashing Replaces the global `decorationGeneration` counter (which forced DOM node recreation on every editor state change) with stable keys based on actual cursor data (client ID, position, opacity, and connection state). This allows ProseMirror to recycle DOM elements effectively. Also wrapped `Decoration.widget` components in a factory function to conform with ProseMirror's recycling APIs. Co-authored-by: dezren39 <[email protected]>
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. …ashing Replaces the global `decorationGeneration` counter (which forced DOM node recreation on every editor state change) with stable keys based on actual cursor data (client ID, position, opacity, and connection state). This allows ProseMirror to recycle DOM elements effectively. Also wrapped `Decoration.widget` components in a factory function to conform with ProseMirror's recycling APIs. Also fixes formatting in .jules/bolt.md using prettier. Co-authored-by: dezren39 <[email protected]> …ashing Replaces the global `decorationGeneration` counter (which forced DOM node recreation on every editor state change) with stable keys based on actual cursor data (client ID, position, opacity, and connection state). This allows ProseMirror to recycle DOM elements effectively. Also wrapped `Decoration.widget` components in a factory function to conform with ProseMirror's recycling APIs. Also fixes formatting in .jules/bolt.md using prettier. Co-authored-by: dezren39 <[email protected]> …ashing Replaces the global `decorationGeneration` counter (which forced DOM node recreation on every editor state change) with stable keys based on actual cursor data (client ID, position, opacity, and connection state). This allows ProseMirror to recycle DOM elements effectively. Also wrapped `Decoration.widget` components in a factory function to conform with ProseMirror's recycling APIs. Also fixes formatting in .jules/bolt.md using prettier and `cargo clippy` linting warnings in `pkgs/id`. Co-authored-by: dezren39 <[email protected]>
2 tasks
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
dezren39
deleted the
bolt-prosemirror-decoration-keys-7337461212199327037
branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |