Skip to content

Commit

Permalink
Merge pull request #1186 from matrix-org/hs/cache-pls-for-a-bit
Browse files Browse the repository at this point in the history
Cache MODE -> power level changes before applying
  • Loading branch information
Half-Shot authored Nov 13, 2020
2 parents 6a36187 + 21f7435 commit 465033b
Show file tree
Hide file tree
Showing 9 changed files with 289 additions and 291 deletions.
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

0 comments on commit 465033b

Please sign in to comment.