Skip to content

Conversation

@chaokunyang
Copy link
Collaborator

@chaokunyang chaokunyang commented Oct 15, 2025

Why?

Simplify the serialization interface for better ergonomics API

What does this PR do?

  • Remove Fory from Serializer trait
  • Make WriteContext as only enviroment for serialization
  • Make ReadContext as only enviroment for deserialization
  • Use OnceLock for thread-safe, lazily initialization for Pool

Related issues

#2737

Does this PR introduce any user-facing change?

  • Does this PR introduce any public API change?
  • Does this PR introduce any binary protocol compatibility change?

Benchmark

@chaokunyang chaokunyang mentioned this pull request Oct 15, 2025
17 tasks
@chaokunyang chaokunyang merged commit e2f1f84 into apache:main Oct 15, 2025
55 checks passed
rajuyadav03 pushed a commit to rajuyadav03/fory that referenced this pull request Oct 20, 2025
## Why?

Simplify the serialization interface for better ergonomics API

## What does this PR do?

- Remove `Fory` from `Serializer` trait
- Make `WriteContext` as only enviroment for serialization
- Make `ReadContext` as only enviroment for deserialization
- Use `OnceLock` for  thread-safe, lazily initialization for `Pool`

## Related issues

apache#2737

## Does this PR introduce any user-facing change?

<!--
If any user-facing interface changes, please [open an
issue](https://github.com/apache/fory/issues/new/choose) describing the
need to do so and update the document if necessary.

Delete section if not applicable.
-->

- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?

## Benchmark

<!--
When the PR has an impact on performance (if you don't know whether the
PR will have an impact on performance, you can submit the PR first, and
if it will have impact on performance, the code reviewer will explain
it), be sure to attach a benchmark data here.

Delete section if not applicable.
-->
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.

2 participants