Skip to content

[Java] Optimize jdk9+ immutable collection serialization #900

Merged
chaokunyang merged 5 commits intoapache:mainfrom
chaokunyang:jdk_immutable_collection_serializers
Sep 4, 2023
Merged

[Java] Optimize jdk9+ immutable collection serialization #900
chaokunyang merged 5 commits intoapache:mainfrom
chaokunyang:jdk_immutable_collection_serializers

Conversation

@chaokunyang
Copy link
Copy Markdown
Collaborator

What do these changes do?

The jdk9+ immutable collection is not registered and optimized in fury.

Currently users need to register those class by fury.register(List.of(1,2).getClass()) for serialization, or disable class registration by FuryBuilder.requireClassRegistration(false), which is tedious.

More importantly , the serialization call writeReplace/readResolve to ensure jdk compatibilyty, which is not efficient.
And generics are not used either.

This PR optimize above all issues ,and support jit&generics optimization for such class.

.

Related issue number

Closes #820

Check code requirements

  • tests added / passed (if needed)
  • Ensure all linting tests pass, see here for how to run them

@chaokunyang chaokunyang merged commit da65f11 into apache:main Sep 4, 2023
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.

[Java] jdk17 List、Set、Map serializeJavaObject error

1 participant