Skip to content

Cache Annotation Lookups #15799

Closed
Closed
@jzheaux

Description

@jzheaux

Several Security components use SecurityAnnotationScanners to look for annotations and apply Security's expression template support and enforce its uniqueness constraints.

Given that this is used by a number of method interceptors and AOT hints, it would be nice if the found merged annotations were cached. Indeed, the JavaDoc encourages this:

/**
  * Since the process of synthesizing an annotation can be expensive, it's recommended to
  * cache the synthesized annotation to prevent multiple computations.
  */

Metadata

Metadata

Assignees

Labels

in: coreAn issue in spring-security-coretype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions