Bug 163347 - Make Document::existingAXObjectCache() fast with accessibility disabled.
Summary: Make Document::existingAXObjectCache() fast with accessibility disabled.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: Performance
Depends on:
Blocks:
 
Reported: 2016-10-12 11:34 PDT by Andreas Kling
Modified: 2016-10-12 12:38 PDT (History)
5 users (show)

See Also:


Attachments
Patch (1.84 KB, patch)
2016-10-12 11:34 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2016-10-12 11:34:08 PDT
We're spending 2.3% of a Dromaeo/dom-modify.html profile in here and that seems avoidable.
Comment 1 Andreas Kling 2016-10-12 11:34:55 PDT
Created attachment 291374 [details]
Patch
Comment 2 Antti Koivisto 2016-10-12 12:15:40 PDT
Comment on attachment 291374 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=291374&action=review

> Source/WebCore/dom/Document.cpp:2430
> +static bool hasEverCreatedAnAXObjectCache = false;

I suppose this works fine in practice (ax being an on/off thing) though in principle this sort of global one-way penalty boxes are somewhat nasty.
Comment 3 WebKit Commit Bot 2016-10-12 12:38:32 PDT
Comment on attachment 291374 [details]
Patch

Clearing flags on attachment: 291374

Committed r207234: <http://trac.webkit.org/changeset/207234>
Comment 4 WebKit Commit Bot 2016-10-12 12:38:37 PDT
All reviewed patches have been landed.  Closing bug.