mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
This commit leverages the ahocorasick algorithm to build a set of user_ids that have their alert_words present in the message. It runs in linear time of the order of length of the input message as opposed to number of alert_words. This is after building a ahocorasick Automaton which runs in O(number of alert_words in entire realm) which is usually cached.
35 KiB
35 KiB