mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +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.
2.8 KiB
2.8 KiB