Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Best way to store content

I'm creating a reference app and have a big XML with a lot of content.

What is the best way to store and load it?
(I'm mainly concerned with performance).

The content is static, so I can convert it to whatever is best.


  • XML file, and load and parse it on startup (I fear this is going to be slow)

  • JSON file

  • Include a .js file that contains a js object with the content

  • Database

  • Some other way?

— asked August 9th 2010 by Sindre Sorhus
  • content
  • database
  • json
  • store
  • table
  • xml

2 Answers

  • I think database.

    Parsing a file or evaling a huge string into the memory will kill the cpu.

    Sqlite it's a file too, but at least its access it's optimised.

    — answered August 9th 2010 by Dan Tamas
  • bump.

    — answered November 21st 2010 by Sindre Sorhus
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.