Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marksman eats cpu for breakfast by just typing on a large repository on helix #301

Open
quesada opened this issue Feb 24, 2024 · 2 comments
Assignees

Comments

@quesada
Copy link

quesada commented Feb 24, 2024

This is the repo of markdown files:

I see some similar closed issues related to performance here, but they seem to be a bit different.
#197

I have many .md files:

$ ~/S/L/pages> ls | wc -l
7762

But I also have lots of images on the /assets folder, and a big db file from a notetaking tool called silverbullet
image

The problem (see htop showing marksman cpu consumption) is that as soon as I type, marksman shots up to 100%:

image

This is on a fast SSD, powerful desktop. Running Aeon linux (opensuse). Any idea why this is?

Edit: I tried vscode with memo extension (autocompletion of links in md) and it works without kiling the cpu with this same repository. This might help discarding hypothesis about size or about cycles on the graph or somesuch that would destroy performance of something navigating the graph.

I also tried to start a folder from scratch. Copied 20 files. started hx. Everything worked, not killing the cpu.

@XiNNiW
Copy link

XiNNiW commented Mar 8, 2024

I am using marksman with neovim editing a small cpp codebase with one or two markdown and I've been consistently running into this issue. For me cpu spikes and sends my little laptop cpu to 96C whenever I return focus to editing after a while away from the editor.

@artempyanykh
Copy link
Owner

I have an idea what might be the problem in @quesada's case.
For @XiNNiW's case (few markdown files) I have no clue. Further input would be needed.

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

No branches or pull requests

4 participants
@quesada @artempyanykh @XiNNiW and others