Eagerly sets up writer instance. Otherwise, the writer will initialize lazily. Invoking this method could improve the performance of some applications. UDP receivers use this in order to avoid initial receive buffer contention.
()
| 3510 | * the performance of some applications. UDP receivers use this in order to avoid initial receive buffer contention. |
| 3511 | */ |
| 3512 | public void warmUp() { |
| 3513 | Row r = newRow(Math.max(TIMESTAMP_EPOCH, txWriter.getMaxTimestamp())); |
| 3514 | try { |
| 3515 | for (int i = 0; i < columnCount; i++) { |
| 3516 | r.putByte(i, (byte) 0); |
| 3517 | } |
| 3518 | } finally { |
| 3519 | r.cancel(); |
| 3520 | } |
| 3521 | } |
| 3522 | |
| 3523 | private static void clearMemColumnShifts(ObjList<MemoryCARW> memColumns) { |
| 3524 | for (int i = 0, n = memColumns.size(); i < n; i++) { |