Skip to content

Performance improvements in ReactiveWrappers and ConvertingPropertyAccessor #2546

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

Closed
mp911de opened this issue Feb 11, 2022 · 0 comments
Closed
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Feb 11, 2022

ReactiveWrappers.isAvailable() performs repetitive checks on classpath availability and supports(…) could cache the outcome on a per-type basis to avoid looping through the registry.

ConvertingPropertyAccessor.convertIfNecessary(…) should avoid calling the conversion service if the target type is a primitive by using ClassUtils.resolvePrimitiveIfNecessary(type).

Findings originate from spring-projects/spring-data-cassandra#1218.

@mp911de mp911de added the type: enhancement A general enhancement label Feb 11, 2022
@mp911de mp911de added this to the 2.6.2 (2021.1.2) milestone Feb 11, 2022
mp911de added a commit that referenced this issue Feb 11, 2022
…yAccessor`.

We now cache whether types are reactive wrappers and bypass the ConversionService for assignable primitive values.

Closes #2546
mp911de added a commit that referenced this issue Feb 11, 2022
…yAccessor`.

We now cache whether types are reactive wrappers and bypass the ConversionService for assignable primitive values.

Closes #2546
odrotbohm added a commit that referenced this issue Feb 14, 2022
…ssor.

We now use Spring's ClassUtils.isAssignable(…) directly. Unit tests to verify that conversion is skipped for primitive / boxed scenarios.

See #2546.
odrotbohm added a commit that referenced this issue Feb 14, 2022
…ssor.

We now use Spring's ClassUtils.isAssignable(…) directly. Unit tests to verify that conversion is skipped for primitive / boxed scenarios.

See #2546.
mp911de pushed a commit that referenced this issue Feb 17, 2022
…ssor.

We now use Spring's ClassUtils.isAssignable(…) directly. Unit tests to verify that conversion is skipped for primitive / boxed scenarios.

See #2546.
mp911de pushed a commit that referenced this issue Feb 17, 2022
…ssor.

We now use Spring's ClassUtils.isAssignable(…) directly. Unit tests to verify that conversion is skipped for primitive / boxed scenarios.

See #2546.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant