Page 1 of 1

DLL or Plaintext?

PostPosted: December 7th, 2009, 3:36 pm
by ina
Need your advise.

If I have many data (million) and I want to put them in external file. What should it be? A DLL file (the data will store in array) or just store it in plaintext?

I want the program can find the data very fast in external file and of course the memory consumtion is small. I dont want to use Access and so on or any runtime file.

Re: DLL or Plaintext?

PostPosted: December 8th, 2009, 7:05 am
by Sezar
if you don't use a database,you lost many power of searching,inserting and etc.
however if you store data in the array in the dll you need a lot of memory.
if you search on the Internet,you will find lite databases that can work without any driver.

Re: DLL or Plaintext?

PostPosted: December 8th, 2009, 10:39 am
by ina
I just need searching operation so I think database in not needed..

btw I found quick sort and binary search to search faster in array, but yes the proble is the memory is still big.

Re: DLL or Plaintext?

PostPosted: December 9th, 2009, 9:56 am
by Stefan
Perhaps you can use CreateFileMapping() and MapViewOfFile() to load it into memory?