Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-08-2022, 12:03 PM   #61
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,365
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Thanks! I haven't been following qt6 dev very much.

Attached is a VM test version with the change.

Posted test version in PI thread.

Last edited by JimmXinu; 03-08-2022 at 12:35 PM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Old 03-08-2022, 12:04 PM   #62
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,764
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
FWIW: you can easily determine whether apply_state() has the save_state named parameter.
Code:
        import inspect
        x = inspect.signature(self.gui.library_view.apply_state)
        has_save_state = 'save_state' in x.parameters
inspect.signature() appeared in python 3 so this won't work on calibre 4 and earlier, so your exception method might be a better solution. Or directly checking the calibre version.
chaley is offline   Reply With Quote
Advert
Old 03-08-2022, 12:09 PM   #63
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,764
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by JimmXinu View Post
Thanks! I haven't been following qt6 dev very much.

Attached is a VM test version with the change.
It works. save_state() is called only once, regardless of how I change VLs.
chaley is offline   Reply With Quote
Old 03-08-2022, 05:24 PM   #64
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,632
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FTR - last evening my time, I ripped the custom columns out of jnikkir's library. That had some effect but it was still slower than I would have expected, given the one column sort sequence didn't change and VL switching was instant.

@JimmXinu - I'll do some tests of the new VM plugin in my 5.38 install, and when Kovid posts a new portable 5.99 beta I'll test it under that too. Be interesting to see if the small delays I get with VM switching are reduced, I've assumed they were due to my multi-column sort sequences - which are my raison d'être for using VM.

@jnikkir - thanks for your cooperation & perseverance, without it the 'bug' would not have been fixed.

BR
BetterRed is offline   Reply With Quote
Old 03-08-2022, 05:27 PM   #65
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,764
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
@JimmXinu - I'll do some tests of the new VM plugin in my 5.38 install, and when Kovid posts a new portable 5.99 beta I'll test it under that too. Be interesting to see if the small delays I get with VM switching are reduced, I've assumed they were due to my multi-column sort sequences - which are my raison d'être for using VM.
There won't be any performance change in 5.38 unless you are running from source.
chaley is offline   Reply With Quote
Advert
Old 03-08-2022, 05:49 PM   #66
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,632
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
There won't be any performance change in 5.38 unless you are running from source.
Installing it under 5.38 is for 'backward compatibility' testing

Installing it under next portable 5.99 beta will tell us if it your changes improves my non-problematic View switching performance - or has any unwanted side-effects

BR
BetterRed is offline   Reply With Quote
Old 03-09-2022, 02:49 PM   #67
jnikkir
Connoisseur
jnikkir doesn't litterjnikkir doesn't litter
 
Posts: 51
Karma: 198
Join Date: Feb 2022
Device: Kindle PW5/11th Gen
Quote:
Originally Posted by BetterRed View Post
@jnikkir - thanks for your cooperation & perseverance, without it the 'bug' would not have been fixed.
No way, you guys are the heroes! I really appreciate all the back & forth as we worked through this.

Quote:
Originally Posted by chaley View Post
There won't be any performance change in 5.38 unless you are running from source.
I am indeed using 5.38 and didn't see a change with VM 1.7.1, so I'm going to show my ignorance one more time by asking... what does "running from source" mean? What's the best way to get this up and running? =S
jnikkir is offline   Reply With Quote
Old 03-09-2022, 02:58 PM   #68
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,738
Karma: 62032183
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It means setting up a development environment, downloading Calibre's source code, and running from that. You don't necessarily need to be a dev -- I do it myself for new features and bugfixes.

https://manual.calibre-ebook.com/develop.html

If you go this path, I recommend SourceTree -- I believe chaley uses it too.

Last edited by ownedbycats; 03-09-2022 at 03:00 PM.
ownedbycats is online now   Reply With Quote
Old 03-09-2022, 03:04 PM   #69
jnikkir
Connoisseur
jnikkir doesn't litterjnikkir doesn't litter
 
Posts: 51
Karma: 198
Join Date: Feb 2022
Device: Kindle PW5/11th Gen
Quote:
Originally Posted by ownedbycats View Post
It means setting up a development environment, downloading Calibre's source code, and running from that. You don't necessarily need to be a dev -- I do it myself for new features and bugfixes.

https://manual.calibre-ebook.com/develop.html

If you go this path, I recommend SourceTree -- I believe chaley uses it too.
Thank you! I'm going to look into that. Is there another way to get this working, or is running from source the only option?
jnikkir is offline   Reply With Quote
Old 03-09-2022, 03:07 PM   #70
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,365
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
The other option is just to wait for the next Calibre version release.
JimmXinu is offline   Reply With Quote
Old 03-09-2022, 03:13 PM   #71
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,632
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JimmXinu View Post
The other option is just to wait for the next Calibre version release.
. . . on Friday of next week.

Or, if it comes sooner, you could get a sneak peek by installing the portable edition of the next version 6 beta, see ==>> Plugin devs: Upcoming migration to Qt 6

BR
BetterRed is offline   Reply With Quote
Old 03-09-2022, 04:59 PM   #72
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,365
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
qt6 beta 5.99.8 doesn't have that change yet.
JimmXinu is offline   Reply With Quote
Old 03-09-2022, 05:16 PM   #73
jnikkir
Connoisseur
jnikkir doesn't litterjnikkir doesn't litter
 
Posts: 51
Karma: 198
Join Date: Feb 2022
Device: Kindle PW5/11th Gen
Quote:
Originally Posted by JimmXinu View Post
The other option is just to wait for the next Calibre version release.
Quote:
Originally Posted by BetterRed View Post
. . . on Friday of next week.

Or, if it comes sooner, you could get a sneak peek by installing the portable edition of the next version 6 beta, see ==>> Plugin devs: Upcoming migration to Qt 6
Oh that's soon!! Okay... I am going to try and be patient and wait for the next release, but I might keep an eye on that beta page anyway. Thank you, all!
jnikkir is offline   Reply With Quote
Old 03-19-2022, 03:46 PM   #74
jnikkir
Connoisseur
jnikkir doesn't litterjnikkir doesn't litter
 
Posts: 51
Karma: 198
Join Date: Feb 2022
Device: Kindle PW5/11th Gen
Just wanted to pop back into this thread and say, all delays in loading VM Views are, indeed, totally gone now (at least when I'm not relying on Action Chains to change the VM view). After updating to Calibre 5.39.0 and installing View Manager 1.7.1, I set each VM view to switch to a specific virtual library, and now CTRL+Tabbing between them instantly loads the correct VL and VM column layout. Yay!!

Using Action Chains (set to change VM views when clicking on a VL tab) does reintroduce some delay. As chaley mentioned earlier, apparently that delay is intentional to "improve performance." So I'm trying to rely less on clicking a tab and having Action Chains change the VM view, and more on using CTRL+Tab to switch VLs/VM views.

I kind of wish there was a shortcut to load the previous VM view, in addition to CTRL+Tab which loads "next view," but that's a not a huge deal.

Thanks again to everyone who helped figure out what was up with those delays. It makes switching between VM views so much smoother.
jnikkir is offline   Reply With Quote
Old 03-19-2022, 04:53 PM   #75
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,365
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
I've posted a VM test version with Previous View action. Note that you have to set your own hotkeys.
JimmXinu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:40 AM.


MobileRead.com is a privately owned, operated and funded community.