[PDB-2441] Commands should be submitted only as bytes Created: 2016/02/17 Updated: 2016/04/20 Resolved: 2016/02/24
|Fix Version/s:||PDB 4.0.0|
|Reporter:||Ryan Senior||Assignee:||Rob Browning|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Epic Link:||MQ Improvements|
Our code currently has a protocol that submits messages using TextMessages (if a string) and bytes message if it's a byte array. We should switch that to only submit byte messages. If given a string, we should just convert it to bytes.
We should confirm this, but we've seen in heap dumps that the original bytes of the TextMessage remain in memory for the duration of the consumer thread's processing, in addition to the string copy. These bytes can be parsed directly and we can avoid having 2 copies in memory before being parsed.