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

fix: do not create constant pool key eagerly #12124

Merged
merged 2 commits into from
Oct 26, 2021
Merged

fix: do not create constant pool key eagerly #12124

merged 2 commits into from
Oct 26, 2021

Conversation

pleku
Copy link
Contributor

@pleku pleku commented Oct 22, 2021

Stops creating a constant pool key eagerly as it was being created 11
times for a simple click listener after each data expression was evaluated.

Next step is to also make it not create the MessageDigest over and over again.

Part of #7826

@Legioth
Copy link
Member

Legioth commented Oct 25, 2021

For any change that is supposed to fix performance issues, I strongly recommend also mentioning some measurement of the performance benefit in the commit message so that new maintainers in the future will have a chance of understanding the impact.

@mshabarov mshabarov self-requested a review October 25, 2021 11:07
pleku added 2 commits October 26, 2021 12:37
Stops creating a constant pool key eagerly as it was being created 11
times for a simple click listener after each data expression was evaluated.

Next step is to also make it not create the MessageDigest over and over again.

Part of #7826
The change improves the server side roundtrip processing time for 2000 buttons with click listeners from roughtly 210ms to 130ms (-40%)
by not eagerly creating the id using MessageDigest after evaluating each event data expression.

Difference to buttons without any click listeners is still about x2 (65ms->130ms).
@pleku
Copy link
Contributor Author

pleku commented Oct 26, 2021

For any change that is supposed to fix performance issues, I strongly recommend also mentioning some measurement of the performance benefit in the commit message so that new maintainers in the future will have a chance of understanding the impact.

Done, but need to make sure the details are not cleared from the merge commit message.

@pleku pleku merged commit 0bc4c89 into master Oct 26, 2021
@pleku pleku deleted the fix/7826 branch October 26, 2021 10:42
vaadin-bot pushed a commit that referenced this pull request Oct 26, 2021
Stops creating a constant pool key eagerly as it was being created 11
times for a simple click listener after each event data expression was evaluated.

The change improves the server side roundtrip processing time for 2000 buttons with click listeners from roughly 210ms to 130ms (-40%) by not eagerly creating the id using MessageDigest after evaluating each event data expression.

Difference to buttons without any click listeners is still about x2 (65ms->130ms).

Next step is to also make it not create the MessageDigest over and over again.

Part of #7826
vaadin-bot pushed a commit that referenced this pull request Oct 26, 2021
Stops creating a constant pool key eagerly as it was being created 11
times for a simple click listener after each event data expression was evaluated.

The change improves the server side roundtrip processing time for 2000 buttons with click listeners from roughly 210ms to 130ms (-40%) by not eagerly creating the id using MessageDigest after evaluating each event data expression.

Difference to buttons without any click listeners is still about x2 (65ms->130ms).

Next step is to also make it not create the MessageDigest over and over again.

Part of #7826
vaadin-bot added a commit that referenced this pull request Oct 26, 2021
Stops creating a constant pool key eagerly as it was being created 11
times for a simple click listener after each event data expression was evaluated.

The change improves the server side roundtrip processing time for 2000 buttons with click listeners from roughly 210ms to 130ms (-40%) by not eagerly creating the id using MessageDigest after evaluating each event data expression.

Difference to buttons without any click listeners is still about x2 (65ms->130ms).

Next step is to also make it not create the MessageDigest over and over again.

Part of #7826

Co-authored-by: Pekka Hyvönen <[email protected]>
mshabarov pushed a commit that referenced this pull request Oct 27, 2021
Stops creating a constant pool key eagerly as it was being created 11
times for a simple click listener after each event data expression was evaluated.

The change improves the server side roundtrip processing time for 2000 buttons with click listeners from roughly 210ms to 130ms (-40%) by not eagerly creating the id using MessageDigest after evaluating each event data expression.

Difference to buttons without any click listeners is still about x2 (65ms->130ms).

Next step is to also make it not create the MessageDigest over and over again.

Part of #7826

Co-authored-by: Pekka Hyvönen <[email protected]>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 22.0.0.beta1 and is also targeting the upcoming stable 22.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants