locked
Storage options RRS feed

  • General discussion

  • Hi all,
    I'm writing some dialog based app which has to store and read some configuration and operational data. My application consists of dialog-based executable (C#) and Win32 executable which is launched periodically by the system and does some tasks based on the data entered in dialog-based executable. Which method of storing data would be the best from performance point of view:
    1) Registry keys
    2) Text file (XML)
    3) Binary file
    4) .... any others?
    Does anyone have any experience (or comparison) with application performance using different methods of data storage? Thanks in advance for any comments!

    Regards,
    Pawel
    Sunday, September 6, 2009 6:41 PM

All replies

  • Hi,

    Would you only be reading data from one application and writing it with the other?

    Thanks

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    Sunday, September 6, 2009 6:51 PM
  • Would you only be reading data from one application and writing it with the other?
    Yes, that's exactly how it would be working. C# app would store and read some data while Win32 would be only reading the same data

    Regards,
    Pawel
    Sunday, September 6, 2009 6:56 PM
  • Hi,

    Which deployment techniques are you considering? Do you need to include external files in your cab files or make reg changes when you install your cab files?

    Thanks

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    Sunday, September 6, 2009 6:59 PM
  • Which deployment techniques are you considering? Do you need to include external files in your cab files or make reg changes when you install your cab files?
    I don't have any external files. My cab would probably contain only 2 above mentioned executables. Any startup configuration isn't necessary if that's your point

    Regards,
    Pawel
    Sunday, September 6, 2009 7:06 PM
  • The fastest for c++ would be a binary file if You need to read/write many times (not a txt but just a file with any extention), the safest would be a registry (users won't delete a file and many doesn't know how to modify the registry).
    If You'll find my answer satisfactory or helpful - mark it as answered or vote for it! Thank You.
    "If You think You know better then me, why is Your code not working, then don't waste my time at this forum. Otherwise - do as I'm suggesting."
    Sunday, September 6, 2009 8:01 PM
  • You can use XML format for storage, if you design your class for serialize the data; its fast and easy to write and read and you can use in multiple apps.
    So I vote for XML.


    -Siva.


    Sunday, September 6, 2009 8:42 PM