HomePhabricator

Use viewport clipping when lots of search results found

Authored by Esanders.

Description

Use viewport clipping when lots of search results found

When find returns more than a hundred fragments, calculate the viewport's
approximate DM range and use that to only render results which are visible.

Introduces getViewportRange to ce.Surface which uses a binary search to find
the viewport range.

Keep track of which subset of the results have been rendered in a ve.Range
so we know how to focus results properly.

Bug: T78234
Change-Id: Id3c2da6f341d6f1f252064a01c1e58ea2d6681a3

Details

Committed
EsandersJan 5 2015, 11:16 AM
Parents
rGVED4288b08af841: Limit number of find and replace results to render
Branches
Unknown
Tags
Unknown
ChangeId
Id3c2da6f341d6f1f252064a01c1e58ea2d6681a3