Click here to Skip to main content
16,018,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: std::fstream and std::transform about lower case question Pin
Stephen Hewitt24-Jan-08 16:36
Stephen Hewitt24-Jan-08 16:36 
GeneralRe: std::fstream and std::transform about lower case question Pin
Maxwell Chen24-Jan-08 20:03
Maxwell Chen24-Jan-08 20:03 
QuestionHow to automate a server Pin
CodingLover22-Jan-08 18:53
CodingLover22-Jan-08 18:53 
Generalstd::map, std::for_each and boost::bind Pin
User 58385222-Jan-08 17:17
User 58385222-Jan-08 17:17 
GeneralRe: std::map, std::for_each and boost::bind Pin
Stephen Hewitt22-Jan-08 18:34
Stephen Hewitt22-Jan-08 18:34 
GeneralRe: std::map, std::for_each and boost::bind Pin
User 58385222-Jan-08 18:41
User 58385222-Jan-08 18:41 
GeneralRe: std::map, std::for_each and boost::bind Pin
Stephen Hewitt22-Jan-08 18:49
Stephen Hewitt22-Jan-08 18:49 
Questionproblem with memory allocation when trying to store a large table Pin
gluballs22-Jan-08 16:15
gluballs22-Jan-08 16:15 
Hi,

I am trying to store a large set of "words," with "definitions," using a trie structure. The code will be written as a DLL, but I want this table to be static so that the table doesn't have to be reread every time a function from this DLL is called. The problem I have is the size of the table. When I create the object, the dictionary, used to hold these words, I can only create a fraction of the number of nodes that are needed. Is there any way I can write a container class so that each member, or set of members, of the class resides at a different location in memory? That way I can avoid the current problem of not having a contiguous block of memory large enough to hold my object.

Alternatively another option is to make multiple dictionary objects. However I have two problems with this approach.

1) Since I need the object to be globally static, I have no way of dynamically creating multiple objects. I would have to pre-declare them and use them as needed. That would suck up memory and is in general fairly messy.

2) Another problem is the matter of efficiency. The more nodes I can fit into one object, the more efficient the storage. One object containing 1M nodes can store more than 2 objects of 500,000 nodes.

Thanks.
GeneralRe: problem with memory allocation when trying to store a large table Pin
User 58385222-Jan-08 17:25
User 58385222-Jan-08 17:25 
GeneralRe: problem with memory allocation when trying to store a large table Pin
gluballs22-Jan-08 18:18
gluballs22-Jan-08 18:18 
GeneralRe: problem with memory allocation when trying to store a large table Pin
User 58385222-Jan-08 18:22
User 58385222-Jan-08 18:22 
GeneralRe: problem with memory allocation when trying to store a large table Pin
gluballs22-Jan-08 18:56
gluballs22-Jan-08 18:56 
GeneralRe: problem with memory allocation when trying to store a large table Pin
User 58385222-Jan-08 18:58
User 58385222-Jan-08 18:58 
GeneralRe: problem with memory allocation when trying to store a large table Pin
Stephen Hewitt22-Jan-08 19:36
Stephen Hewitt22-Jan-08 19:36 
GeneralRe: problem with memory allocation when trying to store a large table Pin
David Crow23-Jan-08 3:27
David Crow23-Jan-08 3:27 
QuestionRead particular bit in a .bin file Pin
Kennis22-Jan-08 16:02
Kennis22-Jan-08 16:02 
GeneralRe: Read particular bit in a .bin file Pin
Don Box22-Jan-08 19:06
Don Box22-Jan-08 19:06 
GeneralPointers and reference Pin
vibindia22-Jan-08 15:08
vibindia22-Jan-08 15:08 
GeneralRe: Pointers and reference Pin
Stephen Hewitt22-Jan-08 16:39
Stephen Hewitt22-Jan-08 16:39 
GeneralRe: Pointers and reference Pin
Nitheesh George22-Jan-08 19:21
Nitheesh George22-Jan-08 19:21 
GeneralATL Win32 issue Pin
act_x22-Jan-08 14:19
act_x22-Jan-08 14:19 
GeneralRe: ATL Win32 issue Pin
Naveen22-Jan-08 16:50
Naveen22-Jan-08 16:50 
Generalmethod call quiry Pin
gman200822-Jan-08 10:20
gman200822-Jan-08 10:20 
GeneralRe: method call quiry Pin
Nitheesh George22-Jan-08 21:27
Nitheesh George22-Jan-08 21:27 
GeneralRe: method call quiry Pin
CPallini22-Jan-08 21:38
mveCPallini22-Jan-08 21:38 

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.