jinzhu/vrome — comment on commit f8861440fcb1063fc89703f05be152238732c83e
File: src/frontend/modules/search.js line 139
By jinzhu:

This is a different area, remove current hightlights, then fine the next.

somehow, we could estimate the time cost to remove current highlights. it should take longer than (total / 100) * 25 ms to remove them.

So we would only find the next when all of those highlights removed.