Quote:
Originally Posted by kiwidude
Phew, all fixed now, thx guys.
I guess the next decision is whether to make this a background job or just make the user wait. On a 1500 book/4000 format library it takes around 15 seconds.
|
Make'em wait. The computer will get lonely.
On a more serious note, as you are almost certainly using os.stat, you have the mtime as well as the size. You may consider storing those two values and the hash (I imagine you got rid of the double hash) of each format with the book, using the plugin storage facility. Check the size+mtime before recomputing the hash, and use the stored hash if the values haven't changed.