SpiritCroc af34399135 Speed up event match regex evaluation for big messages
`regex.containsMatchIn()` for `.*@room.*` can take significantly longer
than checking for `@room` (some real-world events I was getting took
around 15 seconds with this, significantly slowing down the sync
parsing).

Checking `containsMatchIn()` does not lead to different results when
having leading and trailing stars however, it will match in the same
cases as when these are omitted.

For testing purposes, I sent myself some Lorem Ipsum with 5000 words
(not containing any @room).
Without this change, the regex evaluation takes about 16 seconds.
With this change, the regex evaluation now takes significantly less then
a second.
2022-01-20 12:16:34 +01:00
..
2022-01-13 17:50:24 -06:00
2022-01-13 17:28:27 +00:00
2022-01-13 17:50:38 +01:00
2022-01-17 09:27:04 +00:00
2022-01-10 17:49:47 +01:00
2022-01-12 18:08:37 +01:00
2022-01-17 12:21:22 +02:00
2022-01-18 16:20:33 +00:00
2022-01-19 12:02:47 -03:00
2022-01-19 21:13:00 +01:00