Port_Authority
Port_Authority copied to clipboard
[Discussion] Improve Whitelist Check Efficiency
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.
My code which performs the lookup doesn't have any additional logic for caching or an understanding if a whitelist even exists.
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.