Click here to Skip to main content
15,890,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Use OLE Pin
David Crow4-Jun-12 5:07
David Crow4-Jun-12 5:07 
GeneralRe: Use OLE Pin
MKC0024-Jun-12 18:55
MKC0024-Jun-12 18:55 
AnswerRe: Use OLE Pin
David Crow5-Jun-12 2:25
David Crow5-Jun-12 2:25 
GeneralRe: Use OLE Pin
MKC0026-Jun-12 1:22
MKC0026-Jun-12 1:22 
AnswerRe: Use OLE Pin
David Crow6-Jun-12 2:18
David Crow6-Jun-12 2:18 
QuestionFastest data structure Pin
_Flaviu31-May-12 22:59
_Flaviu31-May-12 22:59 
AnswerRe: Fastest data structure Pin
Erudite_Eric1-Jun-12 0:19
Erudite_Eric1-Jun-12 0:19 
AnswerRe: Fastest data structure Pin
Aescleal1-Jun-12 1:04
Aescleal1-Jun-12 1:04 
If your program isn't something that has to stay closed source you could try using Berkeley DB[^], I've found it works really well for simple DB style apps.

If you can't or won't go open source for whatever reason I've found (for me, your data may be used in a completely different fashion) that a two layered approach for fast disk data access works best:

- the data itself is stored in a file with fixed size records
- another file containing a sorted or hashed index of key against index in the data file

Generally I read the index into memory, bung it in a vector or map. When I need data I look the index up in the map and hit the disk for the data itself.
GeneralRe: Fastest data structure Pin
_Flaviu1-Jun-12 1:48
_Flaviu1-Jun-12 1:48 
GeneralRe: Fastest data structure Pin
CPallini1-Jun-12 6:30
mveCPallini1-Jun-12 6:30 
GeneralRe: Fastest data structure Pin
Erudite_Eric1-Jun-12 20:52
Erudite_Eric1-Jun-12 20:52 
GeneralRe: Fastest data structure Pin
Alan Balkany4-Jun-12 7:12
Alan Balkany4-Jun-12 7:12 
Questionis it possible to call web service from java script Pin
Subramani HM31-May-12 20:05
Subramani HM31-May-12 20:05 
AnswerRe: is it possible to call web service from java script Pin
Chandrasekharan P31-May-12 20:15
Chandrasekharan P31-May-12 20:15 
AnswerRe: is it possible to call web service from java script Pin
Iain Clarke, Warrior Programmer3-Jun-12 1:38
Iain Clarke, Warrior Programmer3-Jun-12 1:38 
QuestionDivision By Zero Exception Pin
ForNow31-May-12 2:54
ForNow31-May-12 2:54 
AnswerRe: Division By Zero Exception Pin
Chris Losinger31-May-12 3:25
professionalChris Losinger31-May-12 3:25 
GeneralRe: Division By Zero Exception Pin
ForNow31-May-12 12:43
ForNow31-May-12 12:43 
AnswerRe: Division By Zero Exception Pin
Albert Holguin31-May-12 9:35
professionalAlbert Holguin31-May-12 9:35 
GeneralRe: Division By Zero Exception Pin
ForNow31-May-12 12:44
ForNow31-May-12 12:44 
GeneralCWinThread::Run works by turning optimization off #pragma optimize("",on) Pin
ForNow31-May-12 18:24
ForNow31-May-12 18:24 
AnswerRe: Division By Zero Exception Pin
Albert Holguin1-Jun-12 4:31
professionalAlbert Holguin1-Jun-12 4:31 
QuestionExtend std::string functionality Pin
forkbomber31-May-12 2:46
forkbomber31-May-12 2:46 
AnswerRe: Extend std::string functionality Pin
Chris Losinger31-May-12 3:27
professionalChris Losinger31-May-12 3:27 
AnswerRe: Extend std::string functionality Pin
Nemanja Trifunovic31-May-12 5:09
Nemanja Trifunovic31-May-12 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.