You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 78d8d80
Browse filesBrowse the repository at this point in the historyBrowse files
Look up Fabric event handler prop names once per dispatch
Native event dispatch reads the same handler prop name from the event at each target. Read the capture and bubble prop names once before traversing the path. Each target still reads its current props when invoking listeners.
Set the native timestamp in the event initializer and reuse a frozen empty path before and after dispatch.
`yarn fantom` passes for `EventDispatching-itest.js`, `EventTarget-itest.js` and `Event-itest.js`. These suites cover capture, bubbling, propagation stops, listener errors and custom timestamps.
The changed JavaScript files also pass Prettier.
A Fantom benchmark dispatches pointer-up events with Hermes on a stable tree of 20 levels. For batches of 5,000 dispatches on Apple M6, the median falls from 1,440,547 to 1,166,778 retired instructions per event. Both versions make the same number of handler calls.
Signed-off-by: James Ide <ide@expo.dev>
0 commit comments