Profiled WebKit r104262 on http://dromaeo.com/?dom while running DOM modification tests. The result indicates that we spend a significant amount of time in willRemove and detach: We spend 2.5% of time on ContainerNode::willRemove and 2.2% of time in detach. We also spend 2.2% of time in isReachableFromOpaqueRoots and fastFree/fastMalloc but those are understandable. Also, we're spending 1.4% in Text::create and 1.3% in Text::~Text.
Created attachment 121388 [details] instrument result