]> git.gir.st - VimFx.git/commit
Drastically speed up `find_from_top_of_viewport`
authorSimon Lydell <simon.lydell@gmail.com>
Thu, 2 Jun 2016 15:15:39 +0000 (17:15 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Thu, 2 Jun 2016 15:15:39 +0000 (17:15 +0200)
commitba01c66d6456aa2f4c08336d6e5062bef9e5f595
tree8947d6e7275d94b8cc7c08e11cebc0915ae83dd1
parentbd0210a37104324e3ec436195aa1291d195274f8
Drastically speed up `find_from_top_of_viewport`

- Don't recurse into children of elements when looking for visible text
  nodes; we'll get to them anyway since we iterate over every element of
  the page.
- Don't bother checking text nodes that we already know are whitespace
  only.

Fixes #747.
extension/lib/viewport.coffee
Imprint / Impressum