T204109 profiles a 30 seconds API edit request and determines that roughly 10 seconds of that time is spent in the AbuseFilter edit filter hook.
T204109#4602542 looks at how many more elements can possible be ignored when generating the text that is passed to the AbuseFilter.
Ignoring more elements not only speeds up the execution time of the collection of strings, but will also have knock on effects of the time taken to process all of the strings.
We should investigate which strings are actually used by the community in AbuseFilter rules and then remove the elements that are not needed.