Allowlist lookup linear search

Code reviewMedium18 min

Your task

Review this Python function that filters incoming events to those whose user is on an allowlist. The allowlist is loaded from config and can hold tens of thousands of ids.