Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(ivy): coalesce handlers for events with the same name on the same element #29786

Conversation

pkozlowski-opensource
Copy link
Member

@pkozlowski-opensource pkozlowski-opensource commented Apr 9, 2019

This is the first, WIP version of a solution for https://hackmd.io/3cTDeLW0S-KdHtSR1dq7Qw

This PR has a minimal set of functionality to make handlers coalescing a reality. It doesn't include any perf-optimisations described in the design doc yet (tree-shaking and and runtime performance optimisations will be added in subsequent commits / PRs).

Still, opening this PR for an early review and performance testing.

Remaining work (to be done in separate PRs):

  • - runtime performance optimisations (mostly in findExistingListener);
  • - make coalesce code tree-shakable

@pkozlowski-opensource pkozlowski-opensource force-pushed the listeners_coalescing_after_refactor branch 3 times, most recently from 93d1757 to f1fda4b Compare April 9, 2019 15:39
@pkozlowski-opensource pkozlowski-opensource added comp: ivy target: major This PR is targeted for the next major release labels Apr 9, 2019
@ngbot ngbot bot added this to the needsTriage milestone Apr 9, 2019
@manughub manughub requested a review from mhevery April 9, 2019 17:00
Copy link
Contributor

@kara kara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some nits on comments / tests

packages/core/test/acceptance/listener_spec.ts Outdated Show resolved Hide resolved
packages/core/test/acceptance/listener_spec.ts Outdated Show resolved Hide resolved
packages/core/src/render3/instructions/listener.ts Outdated Show resolved Hide resolved
packages/core/src/render3/instructions/listener.ts Outdated Show resolved Hide resolved
packages/core/src/render3/instructions/listener.ts Outdated Show resolved Hide resolved
@pkozlowski-opensource pkozlowski-opensource marked this pull request as ready for review April 10, 2019 13:53
@pkozlowski-opensource pkozlowski-opensource requested a review from a team as a code owner April 10, 2019 13:53
Copy link
Contributor

@kara kara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kara kara added action: presubmit The PR is in need of a google3 presubmit action: merge The PR is ready for merge by the caretaker labels Apr 10, 2019
@kara
Copy link
Contributor

kara commented Apr 10, 2019

presubmit

@kara kara removed the action: presubmit The PR is in need of a google3 presubmit label Apr 10, 2019
@IgorMinar IgorMinar closed this in 4191344 Apr 11, 2019
wKoza pushed a commit to wKoza/angular that referenced this pull request Apr 17, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants