Commit 1f7b8b81 authored by Florian Fittkau's avatar Florian Fittkau

sendOutAllString with full buffer not on each

parent a1561372
......@@ -85,10 +85,18 @@ IRecordSender {
@Override
public void sendOutStringRecord(final StringRegistryRecord record) {
record.putIntoByteBuffer(stringBuffer, stringRegistry, this);
sendOutStringRecordOnlyIfFull(record);
prioritizedSend(stringBuffer);
}
@Override
public void sendOutStringRecordOnlyIfFull(final StringRegistryRecord record) {
if (record.getRecordSizeInBytes() > stringBuffer.remaining()) {
prioritizedSend(stringBuffer);
}
record.putIntoByteBuffer(stringBuffer, stringRegistry, this);
}
@Override
public void processRecord(final IRecord record) {
if (record instanceof Trace) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment