You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Scrolling and cursor movement are sluggish when there a large numbers of folds #2848
You can reproduce this problem by opening editor-spec.coffee and fold all, then scrolling or moving the cursor. I think it's because we're querying on-screen markers for decorations as we scroll, and folds cause there to be a ton of them.
changed the title [-]Scrolling is sluggish when there a large numbers of folds[/-][+]Scrolling and cursor movement are sluggish when there a large numbers of folds[/+]on Jul 9, 2014
@benogle looks like lots of 'folded' decorations are stacking up for a ton of nested folds. In the case of this file, we're doing a deepContains on a 660-element array.
We should index decorations for each line by id rather than storing them in an array.
Maybe we should only retain 'folded' decorations for the outermost folds to reduce this crazy redundancy.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
[-]Scrolling is sluggish when there a large numbers of folds[/-][+]Scrolling and cursor movement are sluggish when there a large numbers of folds[/+]nathansobo commentedon Jul 9, 2014
Here's a flame graph of moving the cursor with everything folded in
editor-spec.coffee. Looks like we spend a ton of time in_.deepContains.nathansobo commentedon Jul 9, 2014
@benogle looks like lots of 'folded' decorations are stacking up for a ton of nested folds. In the case of this file, we're doing a
deepContainson a 660-element array.lock commentedon Jan 26, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!