Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2013, 03:57 PM   #1
notzed
Member
notzed has a complete set of Star Wars action figures.notzed has a complete set of Star Wars action figures.notzed has a complete set of Star Wars action figures.notzed has a complete set of Star Wars action figures.notzed has a complete set of Star Wars action figures.
 
Posts: 15
Karma: 400
Join Date: Jan 2012
Device: kobo touch
Question 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 04:02 PM.
notzed is offline   Reply With Quote
Old 01-15-2013, 10:04 PM   #2
sysKin
Connoisseur
sysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the end
 
sysKin's Avatar
 
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
sysKin is offline   Reply With Quote
Advert
Old 01-15-2013, 10:50 PM   #3
stewacide
Groupie
stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.
 
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.
stewacide is offline   Reply With Quote
Old 01-15-2013, 11:09 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
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?
davidfor is offline   Reply With Quote
Old 01-15-2013, 11:12 PM   #5
GadgetMan
Banned
GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.GadgetMan ought to be getting tired of karma fortunes by now.
 
GadgetMan's Avatar
 
Posts: 31
Karma: 1141490
Join Date: Dec 2012
Location: Rapid City, SD
Device: Kindles, iPads, Kobo, Nexus 7 and many others
Quote:
Originally Posted by notzed View Post
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.
I love my Kobo..maybe you should be trying it for what it is designed for.. mine works perfect..just my 3 cents..
DG

Last edited by GadgetMan; 01-15-2013 at 11:15 PM.
GadgetMan is offline   Reply With Quote
Advert
Reply


Forum Jump

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 06:17 PM
Kobo Touch, WinXP, Calibre, Delayed Write Failed happyfrog Calibre 16 10-12-2011 03:46 PM
Kobo Wireless unable to write to (most) SD cards Ayukawa Kobo Reader 19 01-27-2011 08:10 PM
Write Fast, Write Slow? Moejoe Writers' Corner 14 03-25-2009 09:55 AM
Connect Software running slow Muskrat Sony Reader 9 10-06-2007 10:08 AM


All times are GMT -4. The time now is 08:44 PM.


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