Re: Which data structure should Iuse for fast retrieval(KS)
From: YKUT (ykutanoor2003_at_yahoo.com)
Date: 04/16/04
- Next message: Balboos: "Re: how can I convert it from cstring to char"
- Previous message: Paul S. Ganney: "Re: inputbox function"
- Next in thread: KS: "Re: Which data structure should Iuse for fast retrieval(KS)"
- Reply: KS: "Re: Which data structure should Iuse for fast retrieval(KS)"
- Messages sorted by: [ date ] [ thread ]
Date: 16 Apr 2004 03:55:13 -0700
Hi KS,
Thnx for the response.
> store data using an index, use an array. If you really need to look up
> something by a key, then this won't work.
I have used CMapStringToString where I have to map a string to another string.
Theres a function called lookUp THAT will be returning the string if given the key.
I want TO KNOW how different CMapStringToString is from Cache Memory.
BCOZ I am reading from the file in read mode and storing all the contents in
CMapStringToString.
Or Do I have to write anotehr programto cache it.
Pls clarify
"KS" <ks@blah.com> wrote in message news:<eEPn1lvIEHA.2924@TK2MSFTNGP09.phx.gbl>...
> None of them. All of them are horrible if you have huge amounts of data.
> Without knowing what you want to do with the data or how much data you're
> going to have, it's tough to tell you which one to use. If you just want to
> store data using an index, use an array. If you really need to look up
> something by a key, then this won't work.
>
> CMyData* myData = new CMyData[count];
>
> [ ... do your processing here ... ]
>
> delete[] myData;
>
> KS
>
> "YKUT" <ykutanoor2003@yahoo.com> wrote in message
> news:e75a53c8.0404142055.76afcaf2@posting.google.com...
> > Hi,
> > Which is the most preffered & fastest way of retrievals /searching
> > mechanism wrt Data stuctutes/hash tables ?
> >
> > Is CList,CMap,CMapString ?
> >
> > Pls clarify as I am doing frequent searches in a file.My idea is read
> > from this file and dump this in to one data structure.
> >
> > Pls guide.
> >
> > Regards
> > YKUT
- Next message: Balboos: "Re: how can I convert it from cstring to char"
- Previous message: Paul S. Ganney: "Re: inputbox function"
- Next in thread: KS: "Re: Which data structure should Iuse for fast retrieval(KS)"
- Reply: KS: "Re: Which data structure should Iuse for fast retrieval(KS)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|