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

Optimize grid by avoiding redundant row refreshes #8874

Merged
merged 2 commits into from
Mar 22, 2017

Conversation

hesara
Copy link
Contributor

@hesara hesara commented Mar 20, 2017

This change is Reviewable

@hesara
Copy link
Contributor Author

hesara commented Mar 20, 2017

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.


a discussion (no related file):
Do not submit before full test run completes.


Comments from Reviewable

@hesara
Copy link
Contributor Author

hesara commented Mar 20, 2017

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.


a discussion (no related file):

Previously, hesara (Henri Sara) wrote…

Do not submit before full test run completes.

Test run completed with 2 new failures - one unrelated Calendar failure on IE11 (worked when retested locally) and one a sub-pixel rendering issue on IE11 (already seen in other branches as well).


Comments from Reviewable

@hesara hesara requested a review from tsuoanttila March 20, 2017 09:22
@pleku
Copy link
Contributor

pleku commented Mar 21, 2017

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


a discussion (no related file):
I think the following internal calls in Grid to refreshBody could be also maybe to use the scheduled version:

  • setStylePrimaryName(String) - this is called on state updates from AbstractComopnentConnector, don't think it requires immediate refreshing of anything
  • setSelectionModel(SelectionModel<T>) - changes the renderer so it is the same as the setRenderer` that was already done
  • setSelectColumnRenderer(Renderer<Boolean>) - this is actually called by the setSelectionModel(..) above and could be set as scheduled for same reasons
  • setRowStyleGenerator(RowStyleGenerator<T>) - called from GridConnector.init(), no need to do immediately refresh
  • setCellStyleGenerator(CellStyleGenerator<T>) - called from GridConnector.init(), no need to do immediately refresh

Comments from Reviewable

@hesara
Copy link
Contributor Author

hesara commented Mar 21, 2017

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.


a discussion (no related file):

Previously, pleku (Pekka Hyvönen) wrote…

I think the following internal calls in Grid to refreshBody could be also maybe to use the scheduled version:

  • setStylePrimaryName(String) - this is called on state updates from AbstractComopnentConnector, don't think it requires immediate refreshing of anything
  • setSelectionModel(SelectionModel<T>) - changes the renderer so it is the same as the setRenderer` that was already done
  • setSelectColumnRenderer(Renderer<Boolean>) - this is actually called by the setSelectionModel(..) above and could be set as scheduled for same reasons
  • setRowStyleGenerator(RowStyleGenerator<T>) - called from GridConnector.init(), no need to do immediately refresh
  • setCellStyleGenerator(CellStyleGenerator<T>) - called from GridConnector.init(), no need to do immediately refresh

Done, starting a full test build


Comments from Reviewable

@hesara
Copy link
Contributor Author

hesara commented Mar 22, 2017

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.


a discussion (no related file):

Previously, hesara (Henri Sara) wrote…

Done, starting a full test build

No new test failures in full build with these changes.


Comments from Reviewable

@pleku
Copy link
Contributor

pleku commented Mar 22, 2017

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@pleku pleku merged commit ec0b52a into master Mar 22, 2017
@pleku pleku deleted the fix-grid-redundant-row-refreshes branch March 22, 2017 06:37
@pleku pleku added this to the 8.0.4 milestone Mar 22, 2017
pleku pushed a commit that referenced this pull request Mar 22, 2017
* Optimize grid by avoiding redundant row refreshes

* Delay more calls to refreshBody()
hesara added a commit that referenced this pull request Mar 22, 2017
* Optimize grid by avoiding redundant row refreshes

* Delay more calls to refreshBody()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants