mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
performance optimize , 1. cache string names 2. cache Charset
This commit is contained in:
@@ -134,7 +134,7 @@ public class MysqlBinlogParsePerformanceTest {
|
||||
|
||||
public static void parseRowsEvent(RowsLogEvent event, AtomicLong sum) {
|
||||
try {
|
||||
RowsLogBuffer buffer = event.getRowsBuf(charset.name());
|
||||
RowsLogBuffer buffer = event.getRowsBuf(charset);
|
||||
BitSet columns = event.getColumns();
|
||||
BitSet changeColumns = event.getChangeColumns();
|
||||
while (buffer.nextOneRow(columns)) {
|
||||
|
||||
Reference in New Issue
Block a user