Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove internal Optional usage in favor of null checks #7155
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 Stream usage with for loops throughout Spring Security's code base.
As mentioned in the PR, Optional is still being used in the following files: