-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Viem's parseEventLogs
is very inefficient and grows exponentially slower with increased ABI size and logs amount. Refactor _filteredEvents
to not use parseEventLogs
. Option is to filter for all ABIs in _events
, so that it's only done once for all subscribers. And have a memoized toFunctionSelector
and/or map from selector to ABI item to ameliorate the slowest part, which is parsing/hashing the ABI.