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
bug(Drag And Drop): Performance issues with zone-patch-rxjs #23248
Labels
area: cdk/drag-drop
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
perf
This issue is related to performance
Comments
crisbeto
added
area: cdk/drag-drop
needs investigation
A member of the team needs to do further investigation to determine the root cause
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
perf
This issue is related to performance
and removed
needs triage
This issue needs to be triaged by the team
labels
Jul 28, 2021
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 29, 2021
…h-rxjs The `CdkDrag` directive subscribes to `NgZone.onStable` on init and then unsubscribes after the first emit. This is usually fine, but it can cause change detections if the app is using `zone-patch-rxjs`. These changes explicitly run a few sensitive calls outside the zone. Fixes angular#23248.
crisbeto
added
has pr
and removed
needs investigation
A member of the team needs to do further investigation to determine the root cause
labels
Jul 29, 2021
zarend
pushed a commit
that referenced
this issue
Aug 4, 2021
…h-rxjs (#23272) The `CdkDrag` directive subscribes to `NgZone.onStable` on init and then unsubscribes after the first emit. This is usually fine, but it can cause change detections if the app is using `zone-patch-rxjs`. These changes explicitly run a few sensitive calls outside the zone. Fixes #23248.
zarend
pushed a commit
that referenced
this issue
Aug 4, 2021
…h-rxjs (#23272) The `CdkDrag` directive subscribes to `NgZone.onStable` on init and then unsubscribes after the first emit. This is usually fine, but it can cause change detections if the app is using `zone-patch-rxjs`. These changes explicitly run a few sensitive calls outside the zone. Fixes #23248. (cherry picked from commit 0baca18)
zarend
pushed a commit
that referenced
this issue
Aug 4, 2021
…h-rxjs (#23272) The `CdkDrag` directive subscribes to `NgZone.onStable` on init and then unsubscribes after the first emit. This is usually fine, but it can cause change detections if the app is using `zone-patch-rxjs`. These changes explicitly run a few sensitive calls outside the zone. Fixes #23248. (cherry picked from commit 0baca18)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: cdk/drag-drop
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
perf
This issue is related to performance
Reproduction
https://stackblitz.com/edit/angular-paeawh-zdxwqh?file=src%2Fapp%2Fdialog-overview-example.ts
Steps to reproduce:
Generate
buttonExpected Behavior
A list with only 100 items should render very fast.
Actual Behavior
Rendering is very slow which makes the app unusable on low-performance devices (or when there are many list items).
On my PC (8 cores@4GHz), rendering of only 200 items takes about 5 seconds in the Stackblitz example.
Even in the production build, this problem persists (rendering of 200 items takes about 2 seconds)
Environment
Notes
The issue only happens when we use both:
cdkDrag
andzone-patch-rxjs
:cdkDrag
from the list items, rendering is fast.The text was updated successfully, but these errors were encountered: