Layr-Labs / eigenda-proxy

EigenDA sidecar proxy server used for communication between rollup software and EigenDA.
MIT License
14 stars 20 forks source link

can we remove verification when reading from caches #145

Open samlaf opened 1 day ago

samlaf commented 1 day ago

Noticed that GET requests on my local devnet are taking ~500ms to complete when using a redis cache

image

Have not profiled but my guess is that verification is taking most of this time.

@bxue-l2 suggested that we might be able to remove the verification done everytime we read from the cache. When verification is enabled, we verify responses from the disperser before populating the redis cache, so it seems redundant to verify blobs queried from redis?

@epociask wdyt?

epociask commented 18 hours ago

seems like a legitimate optimization - assuming that blobs are verified before insertion to cache

epociask commented 18 hours ago

feel free to assign to me if no one else is interested