In this example I made a string of 1000 lines `This is a $test`, and then typing on line 1000 becomes very slow:  The cpu profiler shows 65% goes to `font-lock-fontify-region`: <img width="454" alt="image" src="https://user-images.githubusercontent.com/8885691/46868690-6c414d00-ce29-11e8-8692-e8d792728442.png"> Does anybody know if there is a way to speed up the font locking? Thanks a lot!