Port_Authority icon indicating copy to clipboard operation
Port_Authority copied to clipboard

[Discussion] Improve Whitelist Check Efficiency

Open ACK-J opened this issue 9 months ago • 2 comments

Discussion Each request made by the browser issues a storage get request for the whitelist object. This leads to thousands of storage lookups even if the whitelist is empty. Image My code which performs the lookup doesn't have any additional logic for caching or an understanding if a whitelist even exists. Image

Describe the solution you'd like I'm not sure what the best solution would be but I feel as if my current implementation is not optimal. Maybe we could send a postmessage to the background when the whitelist changes? It may turn out that the current implementation is best to avoid unnecessary complexity but I wanted to open up the discussion for new ideas.

ACK-J avatar Mar 05 '25 16:03 ACK-J