Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Function to manipulate file attributes ? Pin
valikac19-Oct-02 6:55
valikac19-Oct-02 6:55 
GeneralRe: Function to manipulate file attributes ? Pin
Still learning how to code19-Oct-02 9:53
Still learning how to code19-Oct-02 9:53 
GeneralRe: Function to manipulate file attributes ? Pin
valikac19-Oct-02 10:22
valikac19-Oct-02 10:22 
Generalwinxp compatibility issues Pin
Brad Jennings19-Oct-02 6:30
Brad Jennings19-Oct-02 6:30 
GeneralRe: winxp compatibility issues Pin
Brad Jennings19-Oct-02 6:41
Brad Jennings19-Oct-02 6:41 
GeneralRe: winxp compatibility issues Pin
Brad Jennings19-Oct-02 9:33
Brad Jennings19-Oct-02 9:33 
GeneralHeap Management !!!! Pin
tongc19-Oct-02 5:31
tongc19-Oct-02 5:31 
GeneralRe: Heap Management !!!! Pin
Patje20-Oct-02 21:14
Patje20-Oct-02 21:14 
Probably lots of time is lost in finding a chunk of the wanted size. This used to be a known problem in C run time libraries, that's why many people wrote their own memory management module.
A good idea is to prepare 'pools' of predefined sizes (e.g. multiples of 8) and manage lists of vectors in each of the pools.
If your application then requests e.g. 15 bytes, you round it up to the next multiple of 8 (16 in this case) and then go to the pool of 16 bytes. If it's empty, you allocate space for e.g. 10 chunks of 16 bytes. The next time you need 16 bytes (>9, <=16), it will be much faster.
Of course you need to foresee additional list-pointers in your vector of 10 chunks of 16 bytes to store information about which chunk is already handed out to the application, which one is free, what the size is, ...


Enjoy life, this is not a rehearsal !!!
Generalmemory comparison Pin
tongc19-Oct-02 4:27
tongc19-Oct-02 4:27 
GeneralRe: memory comparison Pin
includeh1019-Oct-02 4:55
includeh1019-Oct-02 4:55 
GeneralRe: memory comparison Pin
Nish Nishant19-Oct-02 4:58
sitebuilderNish Nishant19-Oct-02 4:58 
GeneralRe: memory comparison Pin
Nish Nishant19-Oct-02 4:57
sitebuilderNish Nishant19-Oct-02 4:57 
GeneralRe: memory comparison Pin
Michael Dunn19-Oct-02 8:56
sitebuilderMichael Dunn19-Oct-02 8:56 
GeneralDisable the taskbar name of any process Pin
suresh_sathya19-Oct-02 4:26
suresh_sathya19-Oct-02 4:26 
GeneralRe: Disable the taskbar name of any process Pin
Nish Nishant19-Oct-02 4:53
sitebuilderNish Nishant19-Oct-02 4:53 
Generalabout modal and modaless dialog when dealing with large data Pin
whelk19-Oct-02 3:56
whelk19-Oct-02 3:56 
GeneralRe: about modal and modaless dialog when dealing with large data Pin
Stephane Rodriguez.19-Oct-02 4:02
Stephane Rodriguez.19-Oct-02 4:02 
GeneralRe: about modal and modaless dialog when dealing with large data Pin
Nish Nishant19-Oct-02 5:42
sitebuilderNish Nishant19-Oct-02 5:42 
Generalfloat format Pin
wong190719-Oct-02 3:55
wong190719-Oct-02 3:55 
GeneralRe: float format Pin
Stephane Rodriguez.19-Oct-02 4:03
Stephane Rodriguez.19-Oct-02 4:03 
GeneralRe: float format Pin
Nitron19-Oct-02 4:03
Nitron19-Oct-02 4:03 
QuestionRe: float format Pin
David Crow3-Oct-06 4:57
David Crow3-Oct-06 4:57 
Generalusing CreateProcess Pin
includeh1019-Oct-02 3:25
includeh1019-Oct-02 3:25 
GeneralRe: using CreateProcess Pin
Nish Nishant19-Oct-02 4:54
sitebuilderNish Nishant19-Oct-02 4:54 
GeneralRe: using CreateProcess Pin
includeh1019-Oct-02 5:15
includeh1019-Oct-02 5:15 

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.