Merge commit '86b6591b369a220f1a39078ef2a71939d7a2b812' into perf/improve

This commit is contained in:
ysq
2025-08-26 23:04:37 +08:00
6 changed files with 40 additions and 3 deletions
+6 -1
View File
@@ -113,7 +113,7 @@ impl EventProcessor {
let signature = transaction_pretty.signature;
// 使用缓存获取解析器
let parser = self.get_parser();
let all_events = parser
let mut all_events = parser
.parse_transaction(
transaction_pretty.tx.clone(),
signature,
@@ -125,6 +125,11 @@ impl EventProcessor {
.await
.unwrap_or_else(|_e| vec![]);
// 为所有事件设置交易索引
for event in &mut all_events {
event.set_transaction_index(transaction_pretty.transaction_index);
}
let max_time_consuming_us = all_events
.iter()
.map(|event| event.program_handle_time_consuming_us())