Skip to content

selectRange() is very slow #99

@ghost

Description

Since there is no way of scrolling at the moment (see bug #98), I am using a workaround os selectRange(index,index). However, this is very slow.

In a 4800 lines file with 3 different styles per line, it takes more than 6 seconds to perform the operation on a Intel core i7 machine.

    long nanoTime = System.nanoTime();
    codeArea.selectRange(codeArea.getText().length(), codeArea.getText().length());
    System.out.println(System.nanoTime() - nanoTime);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions