Skip to content

Improve scalability #94

@vycdev

Description

@vycdev

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:

  • Maybe deprecate multi-line code blocks (wrapped in ```), they make many things harder, including performance optimizations.
  • Cache untouched lines' decorations
  • Cache projects' tokens
  • Cache regexes results, right now "negative regexes" get run multiple times

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmigratedIssue migrated from the original Todo+ repository.missing api

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions