Improve performance of StompCommand.getMessageType() [SPR-14636] #19203
Labels
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-14636 and commented
Hey,
I was doing some benchmarks of StompCommand.getMessageType() in order to improve it a bit. While doing so, I noticed that the underlying map of stomp commands can be turned into an EnumMap.
As you can see there is ~36% performance increase.
Cheers,
Christoph
Affects: 4.2.7, 4.3.2
Reference URL: #1148
Issue Links:
Referenced from: commits aa12288, 899ebd8, 8e98177
Backported to: 4.2.8
The text was updated successfully, but these errors were encountered: