[Webkit-unassigned] [Bug 10264] New: need ancestorChainHasListenerOfType(type) to avoid malloc during event dispatch
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Sat Aug 5 01:17:51 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=10264
Summary: need ancestorChainHasListenerOfType(type) to avoid
malloc during event dispatch
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P4
Component: New Bugs
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: macdome at opendarwin.org
need ancestorChainHasListenerOfType(type) to avoid malloc during event dispatch
Certain events could benifit from a function to check if any ancestor has a
listener of a specific type.
Such events include:
SVGLoad
mouseMoved
and DOM Mutation events
This would allow us to trade a treewalk for a malloc. The treewalk is likely
to be less expensive.
This would also require us to re-work how event listeners are stored. Using a
HashMap<AtomicString, Vector<EventListenter> > would be required instead, to
allow O(1) lookup of events based on type.
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list