Skip to content

writing is lagging #4903

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

Open
rami-shalhoub opened this issue Feb 2, 2025 · 4 comments
Open

writing is lagging #4903

rami-shalhoub opened this issue Feb 2, 2025 · 4 comments

Comments

@rami-shalhoub
Copy link

when i am writing in a relatively large note (It has about 12 headers and more than 2k characters) I notice that the note is laggy, the words take about 500ms to be written and sometimes the note freezes for about 1-2 seconds before executing an action, but on other shorter notes I don't have any problem

P.S1: I downloaded trilium from Falthub bc when I downloaded it from GitHub it didn't open after 1 hour for som reason
P.S2: I am dual booting windows with ubuntu so I made a symbolic link for the document.db from trilium on windows to trilium on ubuntu to share the same database on both systems, I thought this was the problem so I separated the two databases but still have the same problem

System: Ubuntu 24.04
Trtilium Note version: 0.63.7

@eliandoran
Copy link
Collaborator

@rami-shalhoub , I would like to have a look at the note to see if I have the same performance issues. Would you be able to share it for me? Of course, provided it has no personally identifiable information.

@rami-shalhoub
Copy link
Author

@eliandoran I had to break the note into smaller notes to solve the problem
anyway, I reassembled the note to how was it before
I don't know how you want it as a PDF or as an HTML file, so I made both

output.pdf

ASP.NET note .zip

@rami-shalhoub rami-shalhoub changed the title wrtiing is lagging writing is lagging Feb 17, 2025
@eliandoran
Copy link
Collaborator

@rami-shalhoub , I can reproduce the issue.

It seems to occur due to the table of contents and highlights widget (~300 highlights). Could you try closing them and see if it improves your performance?

Image

You can disable the highlights list for a particular note by assigning it the #hideHighlightWidget label.

I'll also see if I can improve this over in TriliumNext, by waiting for the user to finish typing before reloading the list.

@eliandoran
Copy link
Collaborator

eliandoran commented Feb 18, 2025

As a side note, I generally recommend using Ctrl+Shift+V instead of Ctrl+V as it removes the formatting before pasting. This will ensure that there is no highlighted text. Should you require highlighted text, you can use TriliumNext which introduces syntax highlight for code blocks (but not for inline code quotes).

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

No branches or pull requests

2 participants