Skip to content

PinDMs: fix freezing with large DM lists#4275

Open
beeeegi wants to merge 1 commit into
Vendicated:mainfrom
beeeegi:pindms-dm-list-perf
Open

PinDMs: fix freezing with large DM lists#4275
beeeegi wants to merge 1 commit into
Vendicated:mainfrom
beeeegi:pindms-dm-list-perf

Conversation

@beeeegi

@beeeegi beeeegi commented Jun 5, 2026

Copy link
Copy Markdown

Describe your Changes

The render path scaled with your entire dm history rather than just pinned channels, causing 3-4 second freezes while switching between dms or from a dm to a server, so I replaced the repeated full dm scans with two caches which removes the freeze

Checklist before submitting

  • I have read the CONTRIBUTING.md file and made sure this pull request complies with it
  • This pull request was written by me, and not an AI agent

The render path scaled with your entire DM history rather than just
pinned channels, so I replaced the repeated full-list scans with two
caches. Per-render cost drops from roughly O(rows × totalDMs) to
O(rows + per-category sort), removing the freeze.
@xNasuni

xNasuni commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

this is provably good

before:
before
after:
after

@beeeegi

beeeegi commented Jun 7, 2026

Copy link
Copy Markdown
Author

@xNasuni now imagine a 4 second delay on every dms switch..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants