perf: Major event processing system refactor for improved performance

This commit is contained in:
ysq
2025-08-27 21:31:31 +08:00
parent e673b0aab8
commit 9ea4dab4df
22 changed files with 829 additions and 610 deletions
@@ -391,7 +391,8 @@ impl EventParser for RaydiumAmmV4EventParser {
slot: u64,
block_time: Option<Timestamp>,
program_received_time_us: i64,
index: String,
outer_index: i64,
inner_index: Option<i64>,
) -> Vec<Box<dyn UnifiedEvent>> {
self.inner.parse_events_from_inner_instruction(
inner_instruction,
@@ -399,7 +400,8 @@ impl EventParser for RaydiumAmmV4EventParser {
slot,
block_time,
program_received_time_us,
index,
outer_index,
inner_index,
)
}
@@ -411,7 +413,8 @@ impl EventParser for RaydiumAmmV4EventParser {
slot: u64,
block_time: Option<Timestamp>,
program_received_time_us: i64,
index: String,
outer_index: i64,
inner_index: Option<i64>,
) -> Vec<Box<dyn UnifiedEvent>> {
self.inner.parse_events_from_instruction(
instruction,
@@ -420,7 +423,8 @@ impl EventParser for RaydiumAmmV4EventParser {
slot,
block_time,
program_received_time_us,
index,
outer_index,
inner_index,
)
}