mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-28 16:59:01 +03:00
`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. |
||
---|---|---|
.. | ||
.gitignore | ||
516.bugfix | ||
3932.bugfix | ||
4584.feature | ||
4669.bugfix | ||
4811.feature | ||
4842.misc | ||
4865.misc | ||
4880.wip | ||
4895.removal | ||
4914.wip | ||
4918.wip | ||
4926.misc | ||
4927.wip | ||
4935.bugfix | ||
4942.misc | ||
4948.bugfix | ||
4949.misc | ||
4960.misc | ||
4975.misc | ||
4988.misc | ||
4991.bugfix | ||
4997.bugfix | ||
4998.misc | ||
5008.bugfix |