Skip to content

Pasting lines is slow in large files #543

Open
@cosarara

Description

@cosarara
  1. Take any sufficiently big PHP file (slightly exaggerated example file).
  2. Open it in php-mode.
  3. Copy any line or block of code (even an empty line).
  4. Paste it. It's going to be noticeably slow.
    If running on a supercomputer, spam that paste chord a bit (the pastes will queue, it will take a while).
    Undoing the operations will be similarly slow.

The slowness is increased the bigger the file.

emacs profile

It seems like the culprit is

"Extend the propertize region if START or END falls inside a PHP heredoc."

Notice there are no heredocs at all in the file.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions