spring-projects / spring-data-redis

Provides support to increase developer productivity in Java when using Redis, a key-value store. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-redis/
Apache License 2.0
1.77k stars 1.17k forks source link

Avoid potential duplicate parse operation within GenericJackson2JsonRedisSerializer. #3012

Open christophstrobl opened 1 month ago

christophstrobl commented 1 month ago

In order to read a potential type key json source might be parsed multiple times which imposes a computation overhead. This could be avoided by reusing already parsed JsonNodes as outlined in https://github.com/spring-projects/spring-data-redis/pull/2999/commits/8aaf501b73a8c74df7db839793d55b6e83720835.