01-15-2013, 04:57 PM | #1 |
Member
Posts: 15
Karma: 400
Join Date: Jan 2012
Device: kobo touch
|
How did kobo write such slow software?
So i'm pretty bamboozled by this.
Currently it takes 25 seconds to close a specific HTML file (a few hundred K, only 5000 odd lines) on the kobo glo - which is a 1Ghz cpu. Attrocious. (and the fact it hard-locks the machine whilst doing it is even worse, haven't they heard of threads?) The only way I can think is that they did something really dumb like: array[] all_lines; while (line = remove_first_element_shifting_the_rest_up(all_line s)) { free(line); } Despite using Java, which is supposedly 'slow' (it isn't, although tbh the arm implementation isn't as efficient as x86), my experiments are: - faster start up time - much much more responsive to touches - never misses finger motions - quicker rendering - etc. Whereas the kobo touch/glo is: - slow as a wet week in almost every single operation, even pressing a button is slow After another 12 months I would have expected it to be really amazing - the hardware is really very very competent, and the CPU is many times faster than the eink display can possible keep up with. It makes their product feel like rubbish, but it's not the hardware's fault. Last edited by notzed; 01-15-2013 at 05:02 PM. |
01-15-2013, 11:04 PM | #2 |
Connoisseur
Posts: 56
Karma: 31830
Join Date: Oct 2012
Location: Australia
Device: Aura HD, after a train ate my Glo
|
Dunno if I agree, without knowing more.
HTML is not split into lines so your example is missing the point. Rendering html is always a difficult process because the only way to see how the text flows is to ask the text rendering engine to render it, even if the result is known to be off-screen. Then, for each line, there's several extra reflows to figure out best hyphenation position, and then you can move to the next line. I'm not saying there are no optimisations and other tricks, but: - this is why epub is split into chapters - modern web browsers also lock up for considerable time reflowing html - "threads" is not just a label you slap on a program, and in fact on single-core hardware, interruptable code is probably better than multithreaded code |
Advert | |
|
01-15-2013, 11:50 PM | #3 |
Groupie
Posts: 196
Karma: 1086780
Join Date: Jul 2012
Device: Kobo H2O Ed. 2, Glo HD, Glo, Touch
|
Indeed. Convert to ePub with calibre which will break tr document down into smaller chunks.
|
01-16-2013, 12:09 AM | #4 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The Kobo devices do multitask. If you start a WiFi sync, you can keep using the device while that is happening.
Personally, I don't think closing the book and returning to the home page would benefit from multitasking. The delay is probably not in getting rid of the book from memory, but in updating the status of the book, saving bookmarks and annotations and then retrieving the list of books to display. Because they all rely on the database, multitasking or threading might not help. Plus the last step relies on the first being done, so there are some dependencies. My Glo takes 5 seconds to close a book, which does seem a long time. So, 25 seems excessive. How many books do you have on the device? |
01-16-2013, 12:12 AM | #5 | |
Banned
Posts: 31
Karma: 1141490
Join Date: Dec 2012
Location: Rapid City, SD
Device: Kindles, iPads, Kobo, Nexus 7 and many others
|
Quote:
DG Last edited by GadgetMan; 01-16-2013 at 12:15 AM. |
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restore original kindle software (to write a cool HOWTO) | aleritty | Kindle Developer's Corner | 17 | 09-10-2012 07:17 PM |
Kobo Touch, WinXP, Calibre, Delayed Write Failed | happyfrog | Calibre | 16 | 10-12-2011 04:46 PM |
Kobo Wireless unable to write to (most) SD cards | Ayukawa | Kobo Reader | 19 | 01-27-2011 09:10 PM |
Write Fast, Write Slow? | Moejoe | Writers' Corner | 14 | 03-25-2009 10:55 AM |
Connect Software running slow | Muskrat | Sony Reader | 9 | 10-06-2007 11:08 AM |