Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Nov 6, 2017 · 2 comments
Closed
Assignees
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

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Nov 6, 2017

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

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good catch, there is indeed no need for such repetitive resolution of the headers there. Merged into master now; I'll backport it to 4.3.x later this week.

@spring-projects-issues
Copy link
Collaborator Author

Christoph Dreis commented

Thanks Jürgen.

@spring-projects-issues spring-projects-issues added in: messaging Issues in messaging modules (jms, messaging) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.0.2 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants