Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Slow editing inside large string

Open
#484 5 comments 0 reactions 1 assignee View on GitHub

@zonuexe is already working on this.

Since Oct 29, 2018.

Assessment

This issue has not been assessed yet.

Description

Performance Request

In this example I made a string of 1000 lines This is a $test, and then typing on line 1000 becomes very slow:

php-mode-slow-edit-of-large-string

The cpu profiler shows 65% goes to font-lock-fontify-region:
image

Does anybody know if there is a way to speed up the font locking?

Thanks a lot!

Dominant language
Emacs Lisp
Stars
602
Forks
117
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from emacs-php/php-mode

All issues in emacs-php/php-mode

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.