ace.js: search highlighting makes the editor unresponsive on large folded document
Author: pageldevCreated Jul 19, 2026Updated Jul 29, 2026
Labelsp2bug
Describe the bug
Search highlighting can make the editor very unresponsive when searching a large, heavily folded document.
Expected Behavior
Editor should remain responsive independent of folded sections
Current Behavior
Editor becomes unresponsive
Reproduction Steps
- Open: https://sekedus.github.io/ace/kitchen-sink.html
- Paste the contents of test.xodr.xml
- Fold a lot of high level
<road>elements (like 15-20) - Search for "Road" and scroll, the editor will be very unresponsive
Possible Solution
No response
Additional Information/Context
No response
Ace Version / Browser / OS / Keyboard layout
v1.44.0 / Safari / Mac OS 26 / DE
Source: ajaxorg/ace