![]() |
#1 |
Connoisseur
![]() ![]() Posts: 61
Karma: 198
Join Date: Feb 2022
Device: Kobo Sage (prev. Kindle PW5)
|
Slow switching of Views - Long thread
Hi, I'm hoping someone can help me... I just set up this plugin yesterday and I love it, however I'm experiencing a delay of 3-5 seconds when trying to switch VM views... Is this normal? It sounds like others don't experience this, so I wanted to ask.
I thought at first the delay was related to Action Chains (which I had set up to automatically switch the VM view when I switched VLs), but I uninstalled that and am still experiencing the delay when manually switching VM views. I've uninstalled/reinstalled the plugin, tried building new VM view profiles, but nothing has helped the delay in implementing a view. Any advice? TIA!! |
![]() |
![]() |
![]() |
#2 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,840
Karma: 4604429
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
VM doesn't actually do much at all itself, it's just changing Calibre's settings.
I would guess that it has to do with one or more of:
My views switch in something like 50-100ms I would estimate--it's not instant, but it is quick. I have ~5700 books, a baker's dozen of custom columns, generally only look at 8 columns total and only sort on 3 columns. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() Posts: 61
Karma: 198
Join Date: Feb 2022
Device: Kobo Sage (prev. Kindle PW5)
|
Thanks for replying! This is my current setup:
I do have a bunch of custom columns, but I even removed all of those from my VM Views and made extremely pared-down versions and it still takes 3-5 seconds to load the view. =? |
![]() |
![]() |
![]() |
#4 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,619
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
On an 8,500 book library the Virtual Library switch time is instantaneous (no discernible delay), and the View Manager switch times are about 1 second (the Views sort on 3-4 static columns) Firstly try running calibre with the ignore-plugins option - that will 'prove' whether or not it's a plugin Do you have any 'composite' custom columns templates that use file system functions - e.g Date Modified or Size. BR |
|
![]() |
![]() |
![]() |
#5 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,669
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Since you are using action chain for tabs, disable "switch to VL" settings in VM. That helps a bit. It means your VL wont change if you use menu manually though.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,840
Karma: 4604429
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Running "calibre --ignore-plugins" from a command line also disables View Manager. But you can do the sorts at least manually pretty easily for comparison.
I didn't think of file system custom columns--that's a good idea. |
![]() |
![]() |
![]() |
#7 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,669
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I can confirm from experience that composite column in the sorts can slow things. Filesystem checks are the obvious, but also others depending on complexity.
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() Posts: 61
Karma: 198
Join Date: Feb 2022
Device: Kobo Sage (prev. Kindle PW5)
|
Thanks so much for all the suggestions, I really appreciate the help.
Action Chains isn't responsible - I removed all my events/modules/chains and even uninstalled it to test, but still getting the lag when switching VM views manually. I don't have "switch to VL" enabled in VM... I'm also not sorting by anything (in the VM view settings) except Date or Title. At this point I think it may be related the number of columns I'm viewing, because when I add more, it does get slower; and faster with fewer columns. But it's still laggy (2-3 seconds) even with only 2-3 basic columns showing (title, author, series). This might just be something I have to get used to. ![]() |
![]() |
![]() |
![]() |
#9 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,619
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
To eliminate plugins and customisations you could install a fresh portable on a hard disk and drop a symlink to your library into it. Then see if VL switching is faster on that - FWIW Ctrl+Left and Ctrl+Right arrows can be used to switch VLs.
My previously mentioned 8500 media library has 20 columns in the View that I use most often - sixteen of which are custom columns - none are made via a template. |
![]() |
![]() |
![]() |
#10 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,669
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Do you need the symlink even? I thought you could just switch to your existing library from within the portable. Though unless its changed it defaults back to the portable library on a restart.
|
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() ![]() Posts: 61
Karma: 198
Join Date: Feb 2022
Device: Kobo Sage (prev. Kindle PW5)
|
Okay so, I installed a portable on an external hard drive, ran it, made a symlink to my library (though I don't think that actually mattered), added it as the portable's library, and installed the View Manager plugin.
All my customized 'column coloring' and 'column icon' settings transferred over into the portable, along with the VM views I had created on the normal install -- I guess they transferred from the Calibre settings file in my library? (I really am a beginner at all of this...) But unfortunately switching between VM views in the portable is just as slow as the other... So I guess that says it's not being affected by a different plugin I have installed. But I'm not sure if something else in the transferred-over cusomizations could be the problem. I've also tried removing all the column color and icon customizations -- no difference in speed. And my columns aren't that complex, I didn't think... I'll attach a screenshot of them anyway. I might just be stuck with very slow view-switching, but I appreciate all the input from everyone! |
![]() |
![]() |
![]() |
#12 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,669
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,619
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I prefer a symlink because it saves me having to re-hook the library, and I've had Link shell extension in my toolbag since it was beta'd on NT4, I often forget it's not part of Windows
![]() Can you post the templates used for the Formats and Annot? columns IIRC there are two format functions one that lists what the database 'thinks' exists (its name is something like approx_formats), and another that lists what the file system actually has. Can't comment on Annot? BR Last edited by BetterRed; 03-03-2022 at 01:05 AM. |
![]() |
![]() |
![]() |
#14 | ||
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,669
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Quote:
Annotations are annotation_count(); I suppose there might be very very tiny performance differences depending on the code but I wouldnt suspect that to be the culprit. One thing I've done in the past to rule out the number of books for performance impact is use create library to make a new library copying the structure. Then copy 4-5 books over to it and see if it's still acting slow. If it is, start tearing apart all the columns and stuff in the test library until I figure out what's making it slow. Last edited by ownedbycats; 03-03-2022 at 01:15 AM. |
||
![]() |
![]() |
![]() |
#15 | ||
Connoisseur
![]() ![]() Posts: 61
Karma: 198
Join Date: Feb 2022
Device: Kobo Sage (prev. Kindle PW5)
|
Quote:
For Annot? ..... Well, it USED to be a custom column that input Yes/No based on whether there was text in the #mm_annotations column -- from the Annotations (1.16.0) plugin. I didn't like how the text in the default column looked. But I just realized I can hide the text with a column icon, so I got rid of that Annot? column. ...Still very laggy..... Quote:
![]() |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extremely slow in long files | arspr | Editor | 11 | 06-26-2014 06:22 AM |
[Old Thread] Why is Calibre so slow sending ebooks in emails? | rfog | Calibre | 10 | 05-17-2013 01:42 PM |
This long thread title is intended to reflect my thought's incredible complexity. | Prestidigitweeze | Lounge | 11 | 04-20-2012 06:28 AM |
[Old thread] Calibre really slow | spaze | Calibre | 15 | 03-24-2011 04:04 AM |
[Old Thread] Slow to 'get list of books on device' for Kindle DX | tklaus | Devices | 4 | 03-10-2011 12:11 PM |