Skip to content

4.x: Header.asString() and similar method lookup Mappers in service registry #10595

@tomas-langer

Description

@tomas-langer

This is a performance issue.

Header.get() is OK, as it directly returns a string, all other methods cause a lookup in registry, which imposes a 20% performance degradation (i.e. Header.getString() is 20% slower than Header.get() )

This was identified when benchmarking declarative, though it is valid even for imperative code, as it is quite natural to call the typed method getString() instead of the generic one get()

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Sprint Scope

Relationships

None yet

Development

No branches or pull requests

Issue actions