Skip to content

feat(handler): Create JsonSerializable handler#1486

Open
scyzoryck wants to merge 1 commit into
schmittjoh:masterfrom
scyzoryck:serialisable-handler
Open

feat(handler): Create JsonSerializable handler#1486
scyzoryck wants to merge 1 commit into
schmittjoh:masterfrom
scyzoryck:serialisable-handler

Conversation

@scyzoryck
Copy link
Copy Markdown
Collaborator

@scyzoryck scyzoryck commented May 4, 2023

Q A
Bug fix? no
New feature? yes
Doc updated not yet
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT

Why?

PHP provides nice interface to serialize data to Json, that is also fast. It works only in the serialization direction, there is no way to handle deserialization with it. In our benchmarks, after adding it to Author class we gained 15% faster serialization.

TODOs:

  • Get feedback
  • Add documentation

@goetas
Copy link
Copy Markdown
Collaborator

goetas commented May 5, 2023

This is a very nice addition. I think that it should be an opt in feature as it might be seen as a BC break if suddenly we start using it to decide what json serializeation should look

@scyzoryck scyzoryck force-pushed the serialisable-handler branch from 9c5e363 to 5a93aff Compare June 24, 2023 21:36
@scyzoryck scyzoryck force-pushed the serialisable-handler branch from 5a93aff to 3959d4f Compare June 24, 2023 21:59
@scyzoryck scyzoryck requested a review from goetas June 24, 2023 22:07
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