Skip to content

Reduce access on headers for STOMP messaging [SPR-16165] #20713

Closed
@spring-projects-issues

Description

@spring-projects-issues

Christoph Dreis opened SPR-16165 and commented

Hi,

it has been a while since my last PR, but I just noticed in our loadtests that there is quite some repetitive access on message headers when sending messages via STOMP over websockets. Although just being Map.get() calls underneath they add up at some point for us.

The attached PR minimizes access to those headers. Especially, but not limited to StompHeaderAccessor.getCommand().

I'd appreciate if this PR gets accepted.

Cheers,
Christoph


Affects: 4.3.12

Issue Links:

Referenced from: pull request #1587, and commits f861f18, 9fab208, 899994e

Backported to: 4.3.13

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions