HomePhabricator

Limit number of find and replace results to render

Authored by Esanders.

Description

Limit number of find and replace results to render

Rendering thousands of highlights will cause browsers to
freeze as getClientRects takes several milliseconds.

Bonus:

  • Cache this.fragments.length and new renderedResults count
  • Fix off by one error when reducing number of results

Bug: T78234
Change-Id: Id2ce683fcede02ed6e527048a403791b96573a74

Details

Committed
EsandersJan 5 2015, 11:16 AM
Parents
rGVED1e2e37d68ecc: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
Id2ce683fcede02ed6e527048a403791b96573a74