material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[Table] Very laggy when create more than 20 rows on Chrome

Open HaoliangXu opened this issue 11 years ago • 9 comments

I tried create 20 rows in a table on Chrome. It becomes very slow to select any rows. But It is ok on Safari. I don't know if that's the Chrome's problem.

HaoliangXu avatar Oct 27 '15 05:10 HaoliangXu

It turns out affect Chrome on all platforms

HaoliangXu avatar Oct 31 '15 03:10 HaoliangXu

My best guess here is that we have a rerendering issue. Implementing the shouldComponentUpdate may help.

oliviertassinari avatar Oct 31 '15 08:10 oliviertassinari

I thought I had this problem too but then I realized it only happened when I had the React Dev tools activated. I'm working with a table ~550 rows.

baubie avatar Nov 25 '15 18:11 baubie

For me, it's laggy only when React Dev tools is enabled.

zachguo avatar Dec 18 '15 23:12 zachguo

Table performance is definitely extremely laggy. Even at 100 rows, it's pretty slow which is kind of unacceptable. Had to move to facebook's fixed-data-table but ideally these performance are addressed in Material UI.

peterpuzos avatar Feb 02 '16 14:02 peterpuzos

When Checkbox is used for table row selection, the performance degrades further more, which makes the table unusable after 50 rows on Chrome. The performance issue of Checkbox has been reported with #2832

joyfulelement avatar Feb 02 '16 23:02 joyfulelement

Also having this problem. I've removed React Dev Tools completely and the problem persists. I removed check boxes, and the problem gets a bit better. When I disable selectability (and manually respond to row taps) the problem goes away completely. I've tested this in the latest versions of Chrome, Firefox and Safari, with no difference in the result. I've tried v. 14.4 and 15.0 alpha 2.

siegesmund avatar Apr 07 '16 17:04 siegesmund

Covered by #2832 and #3289

nathanmarks avatar Apr 12 '16 22:04 nathanmarks

Found a solution on SA and it works perfectly: https://stackoverflow.com/a/37025337/1550476

nguyenbathanh avatar Aug 15 '17 09:08 nguyenbathanh