marktext / marktext/marktext

Reaction become slow when the markdown file is large.

Open
#3,211 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:beetle: pri/major 🐛 bug 🔭 area/editor 🚄 performance
Dominant language
TypeScript
Stars
61.6k
Forks
4.6k
Avg merge
23h 49m
Merged PRs (30d)
89

Description

Description

As the title says, things become slow down even freeze for seconds when the markdown file is large. May case is a file over 1500 lines.

Steps to reproduce
  1. Open Markdown Text
  2. Open a markdown file with over 1000 lines.
  3. Use search, or edit the file

Expected behavior:

Fast response for the UI.

Actual behavior:

Slow or Freeze

Versions
  • MarkText:
    0.16.3
  • Operating system:
    Win10, Deepin 20, Manjaro 21.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the slowdown in MarkText with a markdown file over 1,000 lines, using search and editing as described. Profile the affected UI paths to identify the source of the freeze; done means those interactions remain responsive on large files across the reported environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, markdown, typescript
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.