You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for attaching the file. I tested your original 265,184-byte attachment in a built Electron application on macOS, alternating between it and a roughly 20 KB document.
On the current development branch (0.24.0-dev), before the changes in #5863, switching to your large file took 425–451 ms across four samples (mean 436.3 ms). With #5863, it took 289–328 ms (mean 308.9 ms), approximately 29% less time. Both runs used the same machine and CPU profiling; timing covers tab activation through two animation frames.
The profile showed avoidable work from rewriting unchanged editability attributes and hiding/showing the editor around scroll restoration. #5863 removes those redundant updates and the extra layout work. Regression tests cover repeated large-table tab switches, scroll restoration, and read-only behavior.
Two related performance improvements have also recently merged into develop, after the 0.23.0 release:
The development-branch baseline above already includes both improvements. I did not benchmark 0.23.0 against them, so these measurements cannot quantify their contribution to your reported delay.
I could not reproduce the 6–7 second freeze reported on Windows 11 / 0.23.0 in this macOS / current-development-branch environment. There is confirmed overhead worth fixing, but this is not verification that your exact Windows scenario is fully resolved. Local validation passed: 2,871 Muya unit tests, 1,209 desktop unit tests, 7 targeted Electron tests, builds, lint, and type checks.
#5863 is being linked to close this issue when merged. Please retest with a build containing these changes; if the multi-second freeze remains on Windows, please reopen this issue with the tested version and hardware details so we can investigate that remaining case.
Activity
Jocs commentedon Oct 23, 2026
Please attach a demo large file.
netsonicyxf commentedon Oct 23, 2026
here you are
SKILL.md
Jocs commentedon Oct 23, 2026
Thanks for attaching the file. I tested your original 265,184-byte attachment in a built Electron application on macOS, alternating between it and a roughly 20 KB document.
On the current development branch (0.24.0-dev), before the changes in #5863, switching to your large file took 425–451 ms across four samples (mean 436.3 ms). With #5863, it took 289–328 ms (mean 308.9 ms), approximately 29% less time. Both runs used the same machine and CPU profiling; timing covers tab activation through two animation frames.
The profile showed avoidable work from rewriting unchanged editability attributes and hiding/showing the editor around scroll restoration. #5863 removes those redundant updates and the extra layout work. Regression tests cover repeated large-table tab switches, scroll restoration, and read-only behavior.
Two related performance improvements have also recently merged into
develop, after the 0.23.0 release:The development-branch baseline above already includes both improvements. I did not benchmark 0.23.0 against them, so these measurements cannot quantify their contribution to your reported delay.
I could not reproduce the 6–7 second freeze reported on Windows 11 / 0.23.0 in this macOS / current-development-branch environment. There is confirmed overhead worth fixing, but this is not verification that your exact Windows scenario is fully resolved. Local validation passed: 2,871 Muya unit tests, 1,209 desktop unit tests, 7 targeted Electron tests, builds, lint, and type checks.
#5863 is being linked to close this issue when merged. Please retest with a build containing these changes; if the multi-second freeze remains on Windows, please reopen this issue with the tested version and hardware details so we can investigate that remaining case.
fix: marktext#5860 reduce layout work when switching large files (mar…