DescriptionOptimize Element::attributeChanged()
This patch makes style attribute and presentation attribute checks conditional, meaning that these checks are not done for the attributes that we already know have other types.
The reason is that 'isPresentationAttribute()' call is heavy and it is detected as a CPU hotspot by the Intel VTune Amplifier profiler.
After this patch is applied the result median time values improve approximately by 2% for the 'modify-element-classname.html' test and by 11% for the 'modify-element-id.html' test (Linux desktop x64).
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196669
Patch Set 1 #
Total comments: 2
Patch Set 2 : Removed unneeded local var #Messages
Total messages: 12 (5 generated)
|