Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/event_topic_filtering.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Event Topic Filtering Optimization

Replaces linear topic scans with indexed lookup table for faster event parsing.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit is refactor: optimize event topic filtering logic and the file claims it "replaces linear topic scans with indexed lookup table", but nothing in this diff touches the filtering code — it is a three-line description of a change that was not made.

The actual code is in crates/indexer/src/streamer/mod.rs (plan_filters, and the topic handling in poll_once), with the RPC-side filters in crates/indexer/src/rpc/mod.rs. Note that topic filtering is already pushed server-side into the getEvents RPC call via EventFilter (issue #203), so before optimising anything locally it is worth measuring whether the linear scan is actually on a hot path.

If there is a real win there, a PR containing the code change plus a benchmark or test demonstrating it would be very welcome. Please also target dev rather than main, and drop the UTF-8 BOM.

Loading