#5993·ace

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

  1. Open: https://sekedus.github.io/ace/kitchen-sink.html
  2. Paste the contents of test.xodr.xml
  3. Fold a lot of high level <road> elements (like 15-20)
  4. Search for "Road" and scroll, the editor will be very unresponsive

test.xodr.xml

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

v1.44.0 / Safari / Mac OS 26 / DE