Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache MODE -> power level changes before applying #1186

Merged
merged 11 commits into from
Nov 13, 2020
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/1186.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a performance issue where many mode changes in quick succession for a channel would cause many m.room.power_level events to be created.
5 changes: 5 additions & 0 deletions config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,11 @@ ircService:
# "off" - Defaults to disabled, users can choose to enable.
# "force-off" - Disabled, cannot be enabled.
mapIrcMentionsToMatrix: "on" # This can be "on", "off", "force-off".

# When handling lots of mode changes, wait this long before setting a power level
# event in order to batch together changes
# powerLevelGracePeriod: 1000

# Options here are generally only applicable to large-scale bridges and may have
# consequences greater than other options in this configuration file.
advanced:
Expand Down
142 changes: 10 additions & 132 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"irc": "github:matrix-org/node-irc#9028c2197c216dd8e6fc2cb3cc07ce2d6bf741a7",
"js-yaml": "^3.14.0",
"logform": "^2.2.0",
"matrix-appservice": "^0.6.0",
"matrix-appservice-bridge": "^2.3.0",
"matrix-appservice": "^0.7.0",
"matrix-appservice-bridge": "^2.3.1",
"matrix-lastactive": "^0.1.5",
"nedb": "^1.1.2",
"nopt": "^3.0.1",
Expand Down
Loading