forked from fabiospampinato/vscode-todo-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Improve scalability #94
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestmigratedIssue migrated from the original Todo+ repository.Issue migrated from the original Todo+ repository.missing api
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestmigratedIssue migrated from the original Todo+ repository.Issue migrated from the original Todo+ repository.missing api
Original author: fabiospampinato
Original created at: 2018-05-22T00:43:24Z
Original URL: fabiospampinato#54
The amount of work this extension performs scales with the number of lines, basically a file with 1000 lines will take 10 times more to decorate than a file with 100 lines.
At the moment, when the document changes, we trash all the previous decorations and start over, this will cause lags if the file is big enough.
Most of the times only one line or few lines change, usually there's no need to refresh the decorations for all the other lines.
Possible improvements:
Cache regexes results, right now "negative regexes" get run multiple times