Skip to content

Poor performance for drawLine #36

@curran

Description

@curran

I adopted this extension, but then noticed that it causes substantial performance issues. I thought I'd drop a line here with what I noticed.

To reproduce: select some text, and hold down the arrow key so it selects more and more.

The updates take around 72ms.

image

Specifically, these two calls within the minimap extension:

measure and drawLine

image

Specifically, drawLine is not re-using DOM elements:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions