api-platform / core

The server component of API Platform: hypermedia and GraphQL APIs in minutes
https://api-platform.com
MIT License
2.45k stars 876 forks source link

Improve serializer performance with getSupportedTypes #5610

Closed Oipnet closed 1 year ago

Oipnet commented 1 year ago

Description
Symfony 6.3 add getSupportedTypes to improve serializer performance.

Example
Read this article : https://symfony.com/blog/new-in-symfony-6-3-performance-improvements#improved-performance-of-serializer-normalizers-denormalizers

burned42 commented 1 year ago

Just to have this noted down here, this is not only about improving performance, but since not implementing the getSupportedTypes method is deprecated since symfony/serializer 6.3, my deprecation log get flooded with those deprecation messages so much that I had to turn the deprecation log of so it doesn't fill up my disk :D

mvhirsch commented 1 year ago

Since #5672 got merged and 3.1.13 got released last week, I think we can close this?

Renrhaf commented 1 year ago

Excellent thank you ! Deprecation logs are gone after upgrading and adapting our own normalizers :)