Skip to content

[Scala] add scala singleton object serializer#1053

Merged
chaokunyang merged 3 commits intoapache:mainfrom
chaokunyang:add_optimized_scala_object_serializer
Oct 31, 2023
Merged

[Scala] add scala singleton object serializer#1053
chaokunyang merged 3 commits intoapache:mainfrom
chaokunyang:add_optimized_scala_object_serializer

Conversation

@chaokunyang
Copy link
Collaborator

What do these changes do?

This PR optimizes scala object serialization be special serializer. To avoid scala check overhead, this PPR introduce a withScalaOptimization option which is disabled by default. When this option is enabled, io.fury.serializer.scala.SingletonObjectSerializer will be used for singleton object serialization.

The SingletonObjectSerializer is put into java source code since the implementation is simple.
Complex scala integration will be put into fury/scala directory instead.

Related issue number

Closes #764

Check code requirements

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

@chaokunyang
Copy link
Collaborator Author

Hi @pjfanning , I implemented a SingletonObjectSerializer for scala object, would you like to help review it?

@pjfanning
Copy link
Member

@chaokunyang I'm travelling at the moment. It's up to you but I'd recommend not adding this PR until it is possible to write automated Scala tests. I'm not volunteering to that - I'm very busy with other open source work.

@chaokunyang
Copy link
Collaborator Author

chaokunyang commented Oct 31, 2023

@chaokunyang I'm travelling at the moment. It's up to you but I'd recommend not adding this PR until it is possible to write automated Scala tests. I'm not volunteering to that - I'm very busy with other open source work.

I see, thanks. I'll hold this PR and try to setup a scala ci first. Happy travel, @pjfanning , thanks again for taking time at the travel.

@chaokunyang chaokunyang force-pushed the add_optimized_scala_object_serializer branch from 2d496b5 to 60ee1e9 Compare October 31, 2023 16:59
@chaokunyang chaokunyang merged commit 0f01cf1 into apache:main Oct 31, 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.

[Scala] optimize scala singleton object serialization

2 participants