On 02/23/2017 11:10 AM, Masayuki Nakano wrote:
> Do you have any ideas of the cases we should use Add*VarCache?
>
> For example, it's bad if using Get* when:
>
> * every painting
possibly
> * every mousemove
probably
> * every user input except mousemove
well, touchmove is happening a lot too, and possibly wheel, so maybe cache should be used.
Writing a microbenchmark and profiling a bit shouldn't take more than couple of minutes and if the
Get* shows up in the profiles, perhaps worth to convert to Add*VarCache
> * every focus move
happens quite rarely, so maybe not needed
> * every DOM change
Definitely use cache
> * every page load
This happens rarely, so probably doesn't matter