Reduce access on headers for STOMP messaging [SPR-16165] #20713
Labels
in: messaging
Issues in messaging modules (jms, messaging)
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
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
The text was updated successfully, but these errors were encountered: