emacs-php / emacs-php/php-mode

Slow editing inside large string

Open
#484 5 comments 0 reactions 1 assignee Claimed by @zonuexe View on GitHub
Performance Request
Dominant language
Emacs Lisp
Stars
602
Forks
117
Avg merge
12h 54m
Merged PRs (30d)
3

Description

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](https://user-images.githubusercontent.com/8885691/46868608-31d7b000-ce29-11e8-91e1-da0ca0bb234e.gif)

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.