`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.
Change-Id: If3b13304668ad961abb81d5442f37a3a3a1d48b7
* develop: (49 commits)
Update changelog.d/4592.bugfix
Remove jcenter from here, let's see what the CI will say
Common struct for each maven repo
Rename the file to group them
Add changelog file
Revert PR 4592 for devtools
Enhance include groups implementation by decoupling them to a separate file
Cleanup
Legals: improve API to get homeserver terms
Legals: update setting icon
Auto-review
Add a help section in the settings.
Changelog
Color for links
Use same height than the loading item to avoid dynamic resizing
Legals: only display external URLs.
Legals: Move the 2 copyrights items to the new legal screen
Add some space between the 2 TextViews, and improve the layout
Legals: Move the 3 element links to the new legal screen
Rename some classes
...
# Conflicts:
# vector/src/main/res/layout/item_timeline_event_option_buttons_stub.xml
# vector/src/main/res/layout/item_timeline_event_poll_stub.xml
* develop: (319 commits)
Bump dagger from 2.40.4 to 2.40.5
More debouncing
Changelog
I need the view here
clicks() already has debouncing with conflate(), so throttleFirst is not necessary
Use debouncedClicks where applicable
Use `observeViewEvents` facility
private
use != rather that is
Fix waring for state is not dialing or connected
state can also be connected
Add script to compress video and convert to gif file
removing boolean notification version usage
adding changelog entry
removing unused imports and increasing enum allowance
porting the notifications setting version to the vector features
Add warning if unexpected state.
setting login version via typed build config field instead of resources
separating the SSO redirection from the login activities - adds a dedicated routing activity to proxy the uri to the login selected by the feature flags
Removing trailing space
...
# Conflicts:
# vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailAction.kt
# vector/src/main/java/im/vector/app/features/home/room/detail/timeline/format/DisplayableEventFormatter.kt
# vector/src/main/res/layout/item_timeline_event_option_buttons_stub.xml
# vector/src/main/res/xml/vector_settings_labs.xml