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

Remove duplicated condition #1279

Merged

Conversation

Philzen
Copy link
Contributor

@Philzen Philzen commented Apr 26, 2024

Haven't checked the bytecode if this would be optimized away by the compiler or not – so cannot say whether this would also pose a nice micro-optimization.

However it simplifies the condition and reduces the code base.

Kindly advise if this is the right target branch for the PR.

@cowtowncoder
Copy link
Member

cowtowncoder commented Apr 27, 2024

I don't plan for new releases of 2.15 so this should be rebased for 2.18 (current default).

EDIT: has really no practical performance effect since it's in readResolved() that'd be used for JDK deserialization. But I guess it's one less line of code, cleaner... will review.
(and fwtw I suspect JIT would not optimize it away)

@Philzen Philzen force-pushed the 2-15-remove-duplicated-condition branch from eeaedd5 to cf87c88 Compare April 28, 2024 17:30
@Philzen Philzen changed the base branch from 2.15 to 2.18 April 28, 2024 17:31
@Philzen
Copy link
Contributor Author

Philzen commented Apr 28, 2024

… so this should be rebased for 2.18 (current default).

Done.

@cowtowncoder
Copy link
Member

LGTM, will merge. Thank you @Philzen !

@cowtowncoder cowtowncoder merged commit 0c6c025 into FasterXML:2.18 Apr 28, 2024
1 check passed
@Philzen Philzen deleted the 2-15-remove-duplicated-condition branch May 1, 2024 15:19
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.

None yet

2 participants