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

Cache result of String.getBytes() in ExtendedBeanInfo.PropertyDescriptorComparator #24072

merged 1 commit into from Nov 27, 2019


Copy link

stsypanov commented Nov 25, 2019

Hoist constant byte[] out of loop. This is likely to improve start-up time for the cases when ExtendedBeanInfo is widely used as their property descriptors are stored in TreeSet

@jhoeller jhoeller self-assigned this Nov 25, 2019
@jhoeller jhoeller added this to the 5.2.2 milestone Nov 25, 2019
@jhoeller jhoeller changed the title Cache result of String.getButes() in ExtendedBeanInfo.PropertyDescriptorComparator Cache result of String.getBytes() in ExtendedBeanInfo.PropertyDescriptorComparator Nov 25, 2019
@jhoeller jhoeller merged commit 62ca7c4 into spring-projects:master Nov 27, 2019
1 check passed
1 check passed
ci/pivotal-cla Thank you for signing the Contributor License Agreement!
@stsypanov stsypanov deleted the stsypanov:get-bytes branch Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.