Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] Experiment with a partial algorithm for redrawing lines #2090

Open
marijnh opened this issue Dec 30, 2013 · 2 comments
Open

[v4] Experiment with a partial algorithm for redrawing lines #2090

marijnh opened this issue Dec 30, 2013 · 2 comments

Comments

@marijnh
Copy link
Member

marijnh commented Dec 30, 2013

When a single character is typed into a 5000-character line, the DOM structure for the whole (text part of the) line is reconstructed. This has good reasons (it simplifies a lot of things), but is a major source of the slowness of long lines.

With the new, more descriptive way of keeping track of the visible window in the v4 branch, it should be possible to compute a 'DOM diff' of the actual change that is needed, and patch, rather than redraw, the DOM element.

@adrianheine
Copy link
Contributor

adrianheine commented Sep 6, 2018

This is related to #1356, right (although that is only about wrapped lines and this probably also applies to un-wrapped editing)? Is this something we could do / already are doing in the rewrite?

@marijnh
Copy link
Member Author

marijnh commented Sep 6, 2018

I've opened codemirror/dev#29 to track this in the new architecture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants