![]() |
#16 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
Perhaps if my needs and that of Calibre are not too far apart, I'll pass the relevant code your way for you to customize and fit into place at your leisure. - Ahi |
|
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
![]() - Ahi |
|
![]() |
![]() |
![]() |
#19 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#20 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
Ok. No promises, but I'll let you know if I have something that might work. |
|
![]() |
![]() |
![]() |
#22 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Cool, thanks.
|
![]() |
![]() |
![]() |
#23 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
On a barely related note... is there a way to increase Python's memory limits? I keep getting generic and cryptic "MemoryLimit" errors when trying to process RTF files between 400 MB and 1 GB in size.
While this may not be shocking, I do have 3 GB RAM and 32 GB swap space... and only about 6 GB of memory (close to 3 GB RAM, and a bit over 3 GB swap) seems to be used before Python bails. - Ahi |
![]() |
![]() |
![]() |
#24 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I think that will depend on your kernel. For example, historically linux kernels were configured so that user space processes (like python) could not address more than 2GB memory. IIRC the same is true of WinXP. More recent linux kernels are usually configured with higher mem limits and I'm note sure what the situation is in modern windows land.
Basically, python has no particular memory limits, it will happily consume all the memory the OS hosting ti will allow it to. |
![]() |
![]() |
![]() |
#25 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
I guess I should just rewrite things a bit to process one chunk at a time. Thanks! - Ahi |
|
![]() |
![]() |
![]() |
#26 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Hi Pablo,
I think one should choose the language on what you're trying to accomplish. As you are familiar with different programming languages you're aware that each language has it's strength and weakness. Once you have a better definition of your requirements, then ask what languages is best for the task. =X= |
![]() |
![]() |
![]() |
#27 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#28 | |
Lector minore
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 660
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Paperwhite Signature
|
Quote:
Some examples (not including startup time which you've already noted): - I only have 818 books in Calibre but when I click on the sort keys for the table of books (e.g. Title, Author(s), Size(MB) etc) it takes about 2 seconds for the sort to happen. In iTunes where I have far, far more songs, the sort seems to happen as soon as I let go of my mouse button. - When I edit the metadata for a book, it takes about 3-4 seconds for the metadata dialog to go away. - When I click on "Add books" or "Preferences" in the main button bar on top, the new dialog windows that pop up can be seen to draw. That is, the frames are visible and then the window filled in. I would expect that to be close to instant. - Removing a book takes 1 second or more when I'd expect it to be instant - After dragging a book from my desktop into the Calibre table of books to import it, Calibre takes about 3 seconds to finish reading metadata even for simple file types like text which don't have any. - It would obviously be nice if conversion were faster, but this is the one place I would far prefer fidelity and quality over speed (but please work on making it faster anyway ![]() In general, I think Calibre has had enough features for me many, many releases ago. I would rather see UI annoyances go away first, and the sluggish feel of Calibre to me is one such annoyance. That said, I think Calibre is great, and the best library manager/e-book format converter collection that I have tried so far. ![]() |
|
![]() |
![]() |
![]() |
#29 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The Edit metadata window goes away slowly because after you edit metadata, calibre has to move the book files to a new location.
Sorting will become faster after the database refactoring. Seeing the windows drawing is definitely not normal, even on my 6+ year old laptop that doesn't happen. Adding books has a floor time because it takes place in a separate process. This is for robustness as sometimes metadata reading libraries written in C can cause segfaults which would take down all of calibre. |
![]() |
![]() |
![]() |
#30 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 972
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-T2, Kindle Paperwhite 11th gen
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Programming language code snippets in ebooks? | Connochaetes | Writers' Corner | 7 | 10-18-2010 02:43 PM |
Computer programming books | JoshLessard | Amazon Kindle | 6 | 08-08-2010 06:08 PM |
PRS-500 500 Programming | MarzKrishna | Sony Reader Dev Corner | 1 | 12-17-2009 08:43 PM |
Free Programming Resources | hacker | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-16-2005 11:24 AM |