-
Notifications
You must be signed in to change notification settings - Fork 45
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
RFE: Toggle membership events on/off (per channel, ideally) #282
Comments
See also #247 |
Yes, #247 should solve the performance problem. @sergiodj I've been using Ement for years, including in rooms like #matrix-hq:matrix.org, which has over 30,000 members. Until Arto reported the problem mentioned in #247, I had never heard of a situation in which there were so many membership events that it was a performance problem. So the problem you're reporting seems also unusual, and so I'd ask you to provide more information about the room and its events so we can understand what's going on. Just turning off membership events would probably not be a good solution, and I'd prefer not to add another option like that unless it were really necessary. |
Thanks, @alphapapa. I find it strange, too. For me, this only happened so far in rooms bridged with Heisenbridge. I wonder if it's because membership events are much more common on IRC (i.e., people who don't use bouncers tend to disconnect at night, plus the many "connection reset by peer" problems). To give you an example, when I opened my I don't know what else I can provide, but please let me know if you think of something. Thanks. |
That would seem to suggest that there were about 1,000 membership events in the same span of time that there were about 30 message events (AFAIR the Matrix server tries to send about the last 30 message events in a room upon initial sync). That seems unusual, but maybe it's not...? I mean, I used to join Anyway, please try the branch in question and let me know how well it performs with opening that room. If it's still too slow, I guess we'll have to figure out a way to disable membership events in certain rooms. |
Thanks for the reply. I will probably be able to give the branch a try tomorrow, and will report back my findings. Either way, I still believe it would be beneficial to have the ability to silence membership events from certain channels. I understand that this may be considered a low priority request, though. |
It sounds simple enough: just disable membership events for a room. But there's a lot more to it than that:
Given all that, it would probably only take a few minutes to write some advice functions that you could use to ignore membership events in certain rooms. They could sit in your config and solve this problem for you immediately. Then, eventually, something like this could be implemented in a flexible, extensible way suitable for the long-term. |
Thanks for replying and considering the feature. Sure, in theory I could solve every problem by advising functions and so on, but it would be great to have features implemented on Ement as well. Cheers. |
What I'm trying to convey is that it would probably take about 5 lines of code to solve this problem in your config temporarily with advice; and that I wouldn't expect this kind of feature to be implemented in Ement itself anytime soon, because my to-do list is quite long. So if it makes the difference between being able to use it in that kind of chat room or not...it's up to you. :) |
Hi,
The other day I viewed a room which wasn't very large, but I noticed that it took ement several seconds to display it. This was unusual behaviour, so I decided to profile Emacs and understand what was going on. I noticed that almost half of the CPU time was spent processing membership events.
I like having membership events displayed in some of the rooms I'm in, but I would gladly turn them off on most of them. I've been reading ement's code, more specifically
ement-room--format-membership-events
andement-room--pp-thing
, to see if I can hack it and make it ignore the events. I'll submit a PR when I have something.Thanks.
The text was updated successfully, but these errors were encountered: