Skip to content

Remove internal Optional usage in favor of null checks #7155

Closed
@rwinch

Description

@rwinch

Summary

While some prefer the readability of using the Optional API, the GC overhead of creating additional objects (including intermediate objects) can cause significant decrease in performance There are some simple benchmarks that illustrate the problem.

We should replace Optional usage with null checks throughout Spring Security's code base.

Related gh-7154

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions