minutekey / ez-access-web

Automatically exported from code.google.com/p/ez-access-web
0 stars 0 forks source link

Slow parsing with lots of "hidden" elements #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, the code parses every element to see if it appears on the screen. 
For screens that have lots of elements that are hidden, this can cause 
navigation to be very slow when it has to "skip" over a bunch of elements that 
are not being displayed.

In CSS, "display: none" applies to all children of an element. One cannot 
"unhide" a child element if a parent has "display: none".

This fact can be leveraged when parsing the page. If applied to a parent 
element, then you will not have to check the descendants at all to see if they 
are displayed. You can safely go on to check the next element.

If an element does not have "display: none" you may still need to make a second 
check to see if it or its descendants have a rect on the screen.

Original issue reported on code.google.com by jbjor...@gmail.com on 9 May 2013 at 9:31

GoogleCodeExporter commented 8 years ago
This problem is solved as of the next ci.

I was doing an elaborate fix when I found a huge memory hole that was causing 
it to delay a lot on a lot of hidden elements.

Now everything is working!

Original comment by aeharding on 3 Jun 2013 at 8:19

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r146.

Original comment by aeharding on 3 Jun 2013 at 8:20