You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I'm not in the project anymore so I won't be able to approve/merge your PR if submitted. I'll ping @rwinch here who might be able to guide you.
I'd say that the best thing to do is to create a copy implementation of RedisIndexedSessionRepository, apply your changes and measure it again, that will help the team analyze your suggestion better.
RedisIndexedSessionRepository
andRedisSessionExpirationPolicy
create a lot of single-use proxies by relying onBoundHashOperations
.For instance in this case:
spring-session/spring-session-data-redis/src/main/java/org/springframework/session/data/redis/RedisIndexedSessionRepository.java
Lines 898 to 903 in f6f4c86
spring-session/spring-session-data-redis/src/main/java/org/springframework/session/data/redis/RedisIndexedSessionRepository.java
Lines 733 to 735 in f6f4c86
This showed up in our production profiler because of hundreds of MB allocated in
java.lang.reflect.Method
:If I understand the code correctly, this is done purely for convenience and could simply be replaced by the following code:
Or am I overlooking something?
The text was updated successfully, but these errors were encountered: