Limit in memory messages #183
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently we do not have any limits to how many messages live in memory. This means the memory usage could in theory grow indefinitely.
Would it be okay to keep only
nmost recent messages in memory and pop off the least recent one whenever a new one arrives?Part of #182
All events are in memory anyway (hopefully shared references, although I don't know how to validate that). A virtual scroll component might be helpful for reducing how many messages are in the dom at a time, although it may be a pretty difficult thing to get right (we do lots of scroll management and sometimes navigate to a particular point in time within a room). But feel free to explore and see what might work.
Understandable yeah. JS defaults to references for objects so basically shared TrustedEvents.