Improve performance of StompCommand.getMessageType() [SPR-14636] #19203
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.
Affects: 4.2.7, 4.3.2
Reference URL: #1148
Backported to: 4.2.8
The text was updated successfully, but these errors were encountered:
Christoph Dreis commented
Based on the feedback in the PR i removed the Map completely and achieved the following results: