Commit Graph
21596 Commits
Author SHA1 Message Date
Classic298 259fe51cb7 perf: typing lags while many folder chat tabs are open (#35689)
Typing in a folder chat gets sluggish once a dozen chats are open as tabs. Every key press searched the whole page for an open dialog before checking whether the key was a tab shortcut at all, and that search gets slower with every open tab. Now only the tab shortcut keys trigger the search, so normal typing skips it and the shortcuts behave as before.

The table shows typing 40 characters with 12 folder chat tabs open, as the median of 8 interleaved runs per side (Chromium with 6x CPU slowdown, WebKit unthrottled).

<table>
<tr><th>action</th><th>browser</th><th>before</th><th>after</th></tr>
<tr><td>time the page is blocked while typing</td><td>Chromium</td><td>1012 ms</td><td>79 ms</td></tr>
<tr><td>time the page is blocked while typing</td><td>WebKit</td><td>2870 ms</td><td>864 ms</td></tr>
<tr><td>delay from key press to screen update</td><td>Chromium</td><td>58 ms</td><td>43 ms</td></tr>
<tr><td>delay from key press to screen update</td><td>WebKit</td><td>63 ms</td><td>35 ms</td></tr>
</table>

Fixes #35688
2026-12-05 07:56:00 +04:00
Timothy Jaeryang Baek 5573fca1f2 refac 2026-12-05 07:55:36 +04:00
Timothy Jaeryang Baek 14da6b83ed refac 2026-12-05 07:50:03 +04:00
Timothy Jaeryang Baek 954e7c19a4 refac 2026-12-05 07:46:22 +04:00
Timothy Jaeryang Baek 7cfbcfecf7 refac 2026-12-05 07:45:32 +04:00
Timothy Jaeryang Baek d172d26647 refac 2026-12-05 07:40:44 +04:00
Timothy Jaeryang Baek 47952d4aa2 refac 2026-12-05 07:36:54 +04:00
Timothy Jaeryang Baek 9ef4048d57 refac 2026-12-05 07:35:52 +04:00
Timothy Jaeryang Baek 8a1e63b597 refac 2026-12-05 07:33:42 +04:00
Timothy Jaeryang Baek d69c8ee947 refac 2026-12-05 07:32:11 +04:00
Timothy Jaeryang Baek f329d2bcfb refac 2026-12-05 07:27:20 +04:00
Timothy Jaeryang Baek 4c0f448eb2 refac 2026-12-05 07:26:35 +04:00
Timothy Jaeryang Baek 7b00648ce5 refac 2026-12-05 07:25:38 +04:00
Timothy Jaeryang Baek 48999b3369 refac 2026-12-05 07:23:18 +04:00
Timothy Jaeryang Baek cbca97a6b8 refac 2026-12-05 07:19:03 +04:00
Timothy Jaeryang Baek 81cf78104b refac 2026-12-05 07:15:10 +04:00
Timothy Jaeryang Baek d05478cd66 refac 2026-12-05 07:15:00 +04:00
Timothy Jaeryang Baek 16993810d7 refac 2026-12-05 07:12:06 +04:00
Timothy Jaeryang Baek 516e60966d refac 2026-12-05 07:06:03 +04:00
Timothy Jaeryang Baek 7de92922fa refac 2026-12-05 06:57:35 +04:00
Timothy Jaeryang Baek f1bcf93696 refac 2026-12-04 08:26:52 +04:00
Timothy Jaeryang Baek 67ae3012bb refac 2026-12-04 08:20:45 +04:00
G30 ff1ba7a507 fix(a11y): Workspace tab counts meet text contrast with Accessibility Mode on (#35602) 2026-12-04 08:13:18 +04:00
G30 f4a63fa13d i18n: fill missing translations in 1 language (#35610) 2026-12-04 08:13:07 +04:00
Timothy Jaeryang Baek 89b2c9d919 refac 2026-12-04 08:05:29 +04:00
Classic298 d15ba19e98 fix: a HEIC photo that cannot be converted is dropped without an error (#35592)
Attaching a damaged HEIC photo failed badly: the chat input did nothing, a channel showed "[object Object]" and a note showed an upload that never finished. Now each of them shows an error and attaches nothing. Photos that convert fine upload as before.

Fixes #35580
2026-12-04 08:03:22 +04:00
程序员澜桥-Luca 5e5118129c i18n: clarify RAG reranker settings in Simplified Chinese (#35572) 2026-12-04 07:57:15 +04:00
Timothy Jaeryang Baek f612c4db83 refac 2026-12-04 07:48:14 +04:00
G30 7eb87a08d6 fix(a11y): sidebar folder, channel and direct message buttons are 24 pixels square when Accessibility Mode is on (#35598) 2026-12-04 07:44:18 +04:00
G30 232a43f7b6 fix(a11y): Admin and User role badges meet text contrast in the light theme with Accessibility Mode on (#35597) 2026-12-04 07:43:59 +04:00
Classic298 f913c3ef24 perf: return freed memory to the system after traffic bursts (#35593)
After a burst of file uploads and long chats, the process kept most of the memory it needed at the peak, and every further burst added more. On Linux with glibc, blocks of 1 MB and larger now go back to the system as soon as they are freed, which stops the growth, and every 30 seconds the freed memory glibc still holds is returned too, which brings the level down further. `MALLOC_RELEASE_THRESHOLD` sets that size in bytes and `MALLOC_TRIM_INTERVAL` that interval in seconds, and `0` turns either one off. While the threshold is on, it overrides glibc's own `MALLOC_MMAP_THRESHOLD_` and `MALLOC_TRIM_THRESHOLD_`. The median request took about 9% longer on this upload-heavy load (9.8 s to 10.7 s) with both on.

900 chats with a file upload each, in six bursts of 150. The process sat at 1.18 GB before the load in every run.

<table>
<tr><th></th><th>Memory after the load</th></tr>
<tr><td>Without the change</td><td>4.47 GB, still climbing</td></tr>
<tr><td>Immediate release only</td><td>1.95 GB</td></tr>
<tr><td>Periodic release only</td><td>4.26 GB, still climbing</td></tr>
<tr><td>Both</td><td>1.52 GB, flat</td></tr>
</table>

Fixes #35590
2026-12-04 07:43:07 +04:00
G30 5ceca64681 fix(a11y): the Notes and folder tag button is named by the text it shows (#35605)
* fix(a11y): the Notes and folder tag button's name includes the text it shows

* fix(a11y): start the tag button's name with the text it shows
2026-12-04 07:40:58 +04:00
G30 f1d7fc0979 i18n: fill missing translations in 62 languages (#35606) 2026-12-04 07:39:55 +04:00
Timothy Jaeryang Baek 4116a5bffe refac 2026-12-04 07:30:14 +04:00
Timothy Jaeryang Baek 47321e0d74 refac 2026-12-04 07:25:39 +04:00
Timothy Jaeryang Baek acc8823259 refac 2026-12-04 06:53:09 +04:00
Timothy Jaeryang Baek 0481ad7c2e refac 2026-12-04 06:30:25 +04:00
Timothy Jaeryang Baek 924e9885fc refac 2026-12-04 06:05:19 +04:00
Timothy Jaeryang Baek a1b3516c76 refac 2026-12-04 05:52:15 +04:00
Timothy Jaeryang Baek d426c4485a refac 2026-12-04 05:48:10 +04:00
Timothy Jaeryang Baek 0d8eac0eb5 refac 2026-12-04 04:59:34 +04:00
Timothy Jaeryang Baek 4f6072c853 refac 2026-12-04 04:52:52 +04:00
Timothy Jaeryang Baek 8808e58a85 refac 2026-12-04 04:41:24 +04:00
Timothy Jaeryang Baek dbbb048d11 refac 2026-12-04 04:39:39 +04:00
Timothy Jaeryang Baek b55c9032e0 refac 2026-12-04 04:35:31 +04:00
Timothy Jaeryang Baek 64fb1764f1 refac 2026-12-04 04:24:16 +04:00
Timothy Jaeryang Baek fac1f8bdc9 refac 2026-12-04 04:16:42 +04:00
Timothy Jaeryang Baek ccc46ec0c3 refac 2026-12-04 04:15:37 +04:00
G30 8a05da96af fix(a11y): settings labels are tied to their controls, and Response Splitting is named by its label (#35589) 2026-12-04 01:44:41 +04:00
G30 04a404ec7f i18n: fill missing translations in 1 language and fix 1 existing one (#35591) 2026-12-04 01:44:30 +04:00