automq-for-rocketmq
automq-for-rocketmq copied to clipboard
Reduce heap usage for small record
the heap usage of BlockCache and LogCache will significantly increase due to the large number of StreamRecordBatch when record size is small
- Reduce BlockCache heap usage by directly put data block into cache block and parsing it into StreamRecordBatch on demand
- Reduce LogCache heap usage by directly put encoded StreamRecordBatch into StreamCache and decode for indexing on binary search (or cache indices for acceleration by sacrificing more heap memory)