Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Consider delaying MutationObserver.observe to not happen during template stamping #181

Open
ajklein opened this issue Jul 31, 2014 · 0 comments

Comments

@ajklein
Copy link
Contributor

ajklein commented Jul 31, 2014

In a <template repeat> with a lot of nested templates, this call to MutationObserver.observe shows up as a small but not invisible part of the time spent. This is not a huge deal (5ms out of 425ms in the case I'm looking at, with 550 templates), but given how rarely ref is used (and even more rarely mutated), this seems like unnecessary overhead. One could imagine delaying the observation with a setTimeout.

@jmesserly jmesserly self-assigned this Aug 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants