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

Use final keyword for devirtualization #1779

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

jimmy-park
Copy link
Contributor

@jimmy-park jimmy-park commented Feb 17, 2024

Adding the final specifier may help compilers to optimize code by inlining. (This article explains devirtualization very well)
SSLServer could also be final, but the test case SSLClientServerTest.SSLConnectTimeout should be modified.

Warning

This change will prevent users from inheriting internal classes.

@yhirose yhirose merged commit c5a0673 into yhirose:master Feb 17, 2024
4 checks passed
@yhirose
Copy link
Owner

yhirose commented Feb 17, 2024

Thanks for the improvement!

@jimmy-park jimmy-park deleted the use-final-keyword branch February 17, 2024 14:43
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