Attrs are rare enough that it does not make sense to keep them in the Attribute itself. We should move them to a global rare data HashMap.
<rdar://problem/8001168>
Created attachment 56437 [details] patch
Attachment 56437 [details] did not build on qt: Build output: http://webkit-commit-queue.appspot.com/results/2321307
This patch doesn't build it seems due to a stupid merging issue. The fix is removing initialization of m_impl(0). Will make a new patch.
Created attachment 56438 [details] patch 2
Comment on attachment 56438 [details] patch 2 r=me
Landed in r59731.
What effect does it have on XPath performance? One test to try would be <http://ejohn.org/apps/classname/xpath.html>.
(In reply to comment #8) > What effect does it have on XPath performance? One test to try would be <http://ejohn.org/apps/classname/xpath.html>. It is around 0.2-0.3% loss, which should be acceptable given the big win on memory.