Optimize replacing user mentions in messages
danvratil opened this issue · 0 comments
danvratil commented
Right now the code in MessageFormatter::replaceUserInfo()
tries to match IDs of all known users against the message and replace, which is very expensive in large workspaces.
Instead the regex should match all ID-like patterns, find matching user and replace it.