DescriptionAdd early out back to Node::updateDistribution().
It was walking the children of the root (usually the <head> and <body>) on
every call even if nothing was dirty. This meant each call was 5 branches
plus a trace macro, the macro often being more expensive than the no-op work.
Lets instead abort early if nothing is dirty and skip the trace macro when
possible to avoid polluting traces with trace overhead spam.
BUG=527982
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201838
Patch Set 1 #Patch Set 2 : do it right. #
Messages
Total messages: 12 (5 generated)
|