Inline more hot paths and optimize IsElementNode() within node.h
See the linked bugs, which make clear that the functions touched in [1] and [2] are very hot code paths, at least for the blink microbenchmarks. This CL marks those functions ALWAYS_INLINE and optimizes access to IsElementNode() which is the most-likely used of the DOMNodeType accessors. [1] https://chromium-review.googlesource.com/c/chromium/src/+/1962631 [2] https://chromium-review.googlesource.com/c/chromium/src/+/1965945 Bug: 1036543, 1036088, 1036536, 1036089 Change-Id: If07e3dfc051ed5abd152ac758d27113b63080fee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2042374 Auto-Submit: Mason Freed <masonfreed@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#739177}
Showing
Please register or sign in to comment