shutter-network / rolling-shutter

Rolling Shutter is an MEV protection system to be plugged into rollups.
https://twitter.com/project_shutter/
26 stars 7 forks source link

Optimize decryption key handling #458

Open fredo opened 1 week ago

fredo commented 1 week ago

After some discussion with @ulope, we decided to keep the keys in an in-memory cache instead of checking against the db. The reasons are:

fredo commented 1 day ago

Thanks for the review and your opinion. I think you made a valid point regarding a more holistic approach to caching instead of randomly adding caches here and there and that resonates with me very much. I'm actually happy to think about a proper solution once we have the time for it. Just a couple of additional thoughts which Ulo and I came up with.

I would love to get some benchmarking actually. Do you think the benchmark test would give a valuable output?