Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-20-2009, 05:24 AM   #1
real_yoni
Junior Member
real_yoni began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2007
Device: Sony reader
Why xml??

I’m working on a tool for the PRS-505, and I wondered as to why Sony chooses to handle the internal data with an XML file (media.xml)? This will never ever be as fast as an embedded database (Sqlite for example or any other other commercial solution).

No wonder the device seems to get slower with each book you add. The all point behind databases is that with the proper index the time it takes to query will not grow in liner fashion as the case with XML. Not to mention other benefits of database such as storing data in binary representation and the textual one etc…

Y.
real_yoni is offline   Reply With Quote
Old 01-20-2009, 11:45 AM   #2
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Quote:
Originally Posted by real_yoni View Post
I’m working on a tool for the PRS-505, and I wondered as to why Sony chooses to handle the internal data with an XML file (media.xml)? This will never ever be as fast as an embedded database (Sqlite for example or any other other commercial solution).
XML is an industry standard. Also, it can be edited on any platform with just a text editor, you don't need any tool. With a database format, you would limit the supported platforms and possibly run into trouble with newer versions of said database. Speed isn't much of a concern in a reader, is it? And if it is, the reader could convert the XML into a faster format on power-on.

Quote:
The all point behind databases is that with the proper index the time it takes to query will not grow in liner fashion as the case with XML.
A database is way too robust for reader's needs. As for speed, XML does not necessarily require a linear time, either - it can be indexed just as well as a real database.
pepak is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert PDF to XML? Ambar Other formats 3 01-12-2012 12:48 PM
XML input into calibre cremofix Calibre 3 05-18-2009 06:38 AM
Media.XML and how to create one from pc Student1 Sony Reader Dev Corner 4 05-06-2009 07:39 PM
manifest.xml templates yokos iRex 8 07-04-2008 06:16 PM
PRS-500 Available XML commands johnmcelfresh Sony Reader Dev Corner 0 08-18-2007 01:55 PM


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


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