Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stupid question Pin
Graham Bradshaw26-Mar-05 23:35
Graham Bradshaw26-Mar-05 23:35 
GeneralRe: Stupid question Pin
eli1502197927-Mar-05 3:11
eli1502197927-Mar-05 3:11 
GeneralRe: Stupid question Pin
David.Kelly4-Apr-05 11:04
David.Kelly4-Apr-05 11:04 
Generalchange bitmap button during runtime Pin
Yaron Abershitz26-Mar-05 21:49
Yaron Abershitz26-Mar-05 21:49 
GeneralRe: change bitmap button during runtime Pin
namaskaaram27-Mar-05 16:50
namaskaaram27-Mar-05 16:50 
GeneralEvent Threading Pin
zx2c426-Mar-05 16:30
zx2c426-Mar-05 16:30 
GeneralLinked Lists & Arrays and Locality of Reference Pin
Ziro_026-Mar-05 16:28
Ziro_026-Mar-05 16:28 
GeneralRe: Linked Lists & Arrays and Locality of Reference Pin
Michael Dunn26-Mar-05 20:33
sitebuilderMichael Dunn26-Mar-05 20:33 
When using a linked list, there is also the strategy of allocating chunks of memory that are multiples of your node size. For example, if you have a list of int (so your node size is 8, 4 for the int and 4 for the 'next' pointer), you could allocate memory in blocks of 8*N, where N is some "good" number you arrive at through perf measuring tools. Then when you add a node, you take that block and use the next available 8 bytes for the node. If you've used up a whole block, allocate another block and start using that.
MFC does this with its collections, the class that handles the chunks of memory is called CPlex (it's not documented, so you'll need to read the source).

--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD

GeneralRe: Linked Lists & Arrays and Locality of Reference Pin
Anonymous27-Mar-05 6:05
Anonymous27-Mar-05 6:05 
GeneralVC++ relationship between low-level objkects and GUI interfaces Pin
Anonymous26-Mar-05 10:41
Anonymous26-Mar-05 10:41 
GeneralRe: VC++ relationship between low-level objkects and GUI interfaces Pin
PJ Arends26-Mar-05 11:12
professionalPJ Arends26-Mar-05 11:12 
GeneralGlobal Function Pin
Static(x)26-Mar-05 9:49
Static(x)26-Mar-05 9:49 
GeneralRe: Global Function Pin
PJ Arends26-Mar-05 11:18
professionalPJ Arends26-Mar-05 11:18 
GeneralRestarting the process!! Pliz help Pin
mpapeo26-Mar-05 9:41
mpapeo26-Mar-05 9:41 
GeneralRe: Restarting the process!! Pliz help Pin
Gary R. Wheeler26-Mar-05 13:53
Gary R. Wheeler26-Mar-05 13:53 
GeneralRe: Restarting the process!! Pliz help Pin
mpapeo27-Mar-05 3:04
mpapeo27-Mar-05 3:04 
GeneralRe: Restarting the process!! Pliz help Pin
Gary R. Wheeler27-Mar-05 3:40
Gary R. Wheeler27-Mar-05 3:40 
GeneralRe: Restarting the process!! Pliz help Pin
mpapeo27-Mar-05 4:06
mpapeo27-Mar-05 4:06 
GeneralAES imlementation in VC++ Pin
26-Mar-05 9:08
suss26-Mar-05 9:08 
GeneralFew questions, involving 64 bit file support. Pin
Master Shake 14426-Mar-05 7:32
Master Shake 14426-Mar-05 7:32 
GeneralRe: Few questions, involving 64 bit file support. Pin
Ravi Bhavnani26-Mar-05 12:17
professionalRavi Bhavnani26-Mar-05 12:17 
GeneralRe: Few questions, involving 64 bit file support. Pin
PJ Arends26-Mar-05 12:41
professionalPJ Arends26-Mar-05 12:41 
GeneralRe: Few questions, involving 64 bit file support. Pin
Ravi Bhavnani26-Mar-05 12:44
professionalRavi Bhavnani26-Mar-05 12:44 
GeneralRe: Few questions, involving 64 bit file support. Pin
Graham Bradshaw26-Mar-05 23:37
Graham Bradshaw26-Mar-05 23:37 
GeneralC++ Program Parameter Problem Pin
bneacetp26-Mar-05 6:16
bneacetp26-Mar-05 6:16 

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.