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

Buttons initialize very slowly since beta.12 #7600

Closed
heddendorp opened this issue Oct 6, 2017 · 8 comments
Closed

Buttons initialize very slowly since beta.12 #7600

heddendorp opened this issue Oct 6, 2017 · 8 comments
Assignees

Comments

@heddendorp
Copy link

Bug, feature request, or proposal:

Since the beta.12 update it seems like mat-buttons take a long time to render.

What is the expected behavior?

Same speed or better as beta.11

What is the current behavior?

I have a paginated md-table with 50 rows and 3 buttons per row, since the last update switching pages takes significantly longer, it works fine if I remove the buttons.

What are the steps to reproduce?

Update to beta.12 and render many buttons at once

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/cli: 1.4.5
node: 8.2.1
os: darwin x64
@angular/animations: 4.4.4
@angular/cdk: 2.0.0-beta.12
@angular/cli: 1.4.5
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/flex-layout: 2.0.0-beta.9
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/material: 2.0.0-beta.12
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/platform-server: 4.4.4
@angular/router: 4.4.4
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
typescript: 2.5.3

Is there anything else we should know?

@willshowell
Copy link
Contributor

Does the same thing happen if you replace <button mat-button> with just <button>?

@heddendorp
Copy link
Author

heddendorp commented Oct 9, 2017

Yeah it seems to be significantly faster without mat-button @willshowell
I measured performance and the frame after the click takes 1.23s with mat-buttons and 0.46s without, it's also 0.49s on the latest deployed version which uses beta.11
The time is also 1.2s when running the app in optimized mode and about 0.53 when only displaying 25 rows as well as 3.2s when displaying 200

@doginthenight
Copy link

This could be related to issue #4221.
For me the violation did not occur with previous versions of Angular Material 2 but suddenly started with beta.12.

@jelbourn
Copy link
Member

jelbourn commented Nov 3, 2017

Might be related to touch-based ripples that have since been reverted

@heddendorp
Copy link
Author

I will try once the next beta comes @jelbourn
Assuming that's soon for ng5 as well ;)

@thw0rted
Copy link

thw0rted commented Dec 6, 2017

I just filed #8838 which I think could be related? It's a ripple issue as well.

@devversion
Copy link
Member

devversion commented Jan 24, 2018

Performance for ripples should be much better now. The ripples now use passive event listeners, which should improve the performance of the ripples at initialization and runtime.

Also we updated the ripples to no longer register events, if the ripples are disabled initially using disableRipple for example.

If you still see performance issues, please open a new issue, or ping me here. Thanks

@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 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants