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

CTB Very slow changing between subnodes/nodes [0.99.51] #2140

Open
danieljnilson opened this issue Oct 27, 2022 · 11 comments
Open

CTB Very slow changing between subnodes/nodes [0.99.51] #2140

danieljnilson opened this issue Oct 27, 2022 · 11 comments

Comments

@danieljnilson
Copy link

danieljnilson commented Oct 27, 2022

Hello,

I use cherrytree extensively as an electronic notebook for work (going back to 2018) on Ubuntu. It now operates slowly. Is there a way for me to enhance the speed or increase the smoothness in node switching?

My ctb file is 60mb and switching between nodes/subnodes causes the program to freeze for 5-30 seconds

I've tried "Save & Vacuum," reducing the number of backups, and limiting autosaves to every 5 minutes. Howe

Unfortunately the bulk of the file size is in the node that I am currently working in / can't separate (it consists of several small tables & compressed images). The images are of graphs that are most convenient to have integrated in.

The .ctb file & cherrytree run on a M.2 drive with a copious quantity of free RAM.

Thank you.

@giuspen
Copy link
Owner

giuspen commented Oct 27, 2022

I will start soon the support for a third so called document type, in fact it won't be a single file anymore but structured in folders, this will better support large documents with many images/binaries

@giuspen
Copy link
Owner

giuspen commented Oct 27, 2022

Another known issue are the tables actually. If you switch between nodes that don't have tables, is it any faster?

@danieljnilson
Copy link
Author

danieljnilson commented Oct 27, 2022 via email

@danieljnilson
Copy link
Author

danieljnilson commented Oct 31, 2022 via email

@giuspen
Copy link
Owner

giuspen commented Nov 8, 2022

That's interesting, so you experienced lagging when leaving a node with tables and not when entering a node with tables. I will do some tests myself and see if I find a solution.

@giuspen
Copy link
Owner

giuspen commented Nov 12, 2022

I can reproduce the issue with large tables (e.g. 1000 cells), can you give me an idea of the number of cells in the table when you start to experience the issue?

@giuspen
Copy link
Owner

giuspen commented Nov 12, 2022

Years ago, when cherrytree was GTK2 / Python2, the tables were implemented in a simpler way, the cell edit experience was not as good as today's but on the other hand that had a very good performance on large tables.

The old days implementation was more of a spreadsheet, the current one is more like a table in a word document.

I'm starting to think I should take the old implementation back for use in large tables while smaller tables would continue to benefit with the current implementation.

@danieljnilson
Copy link
Author

danieljnilson commented Nov 12, 2022 via email

@giuspen
Copy link
Owner

giuspen commented Nov 12, 2022

Yes please, still let me know if you have small tables (e.g. 10 cells) do you still have the issue?

@danieljnilson
Copy link
Author

danieljnilson commented Nov 12, 2022 via email

@lbpth
Copy link

lbpth commented May 15, 2024

CherryTree is not slow in my opinion but I have to admit that it is not smooth, especially when we switch to other nodes or do a search. It is not slow but it is not smooth. I feel a bit laggy or delayed. Does anyone have the same experience?

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

3 participants