Skip to content

Skip Java immutable objects in session when processing the accessed attributes [SPR-11738] #16360

@spring-projects-issues

Description

@spring-projects-issues

Dongqing Hu opened SPR-11738 and commented

String, Integer, Long, Boolean... Such typed value objects can be skipped from updating in ServletRequestAttributes#updateAccessedAttributes() , or skipped from being added to #sessionAttributesToUpdate via #getAttribute()

This is good optimization when the session is full of values. Do less serialization and I/O (sometimes none) in session management.

In which of the two methods is it better to place the "skip" logic?


No further details from SPR-11738

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions