Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhich one makes for faster programs: DLLs or static libraries??? Pin
mwhannan29-Oct-03 9:24
mwhannan29-Oct-03 9:24 
AnswerRe: Which one makes for faster programs: DLLs or static libraries??? Pin
winalice29-Oct-03 9:35
winalice29-Oct-03 9:35 
AnswerRe: Which one makes for faster programs: DLLs or static libraries??? Pin
alex.barylski29-Oct-03 9:58
alex.barylski29-Oct-03 9:58 
GeneralRe: Which one makes for faster programs: DLLs or static libraries??? Pin
mwhannan29-Oct-03 10:23
mwhannan29-Oct-03 10:23 
GeneralRe: Which one makes for faster programs: DLLs or static libraries??? Pin
alex.barylski29-Oct-03 10:50
alex.barylski29-Oct-03 10:50 
GeneralRe: Which one makes for faster programs: DLLs or static libraries??? Pin
mwhannan29-Oct-03 17:12
mwhannan29-Oct-03 17:12 
GeneralRe: Which one makes for faster programs: DLLs or static libraries??? Pin
melwyn31-Oct-03 3:20
melwyn31-Oct-03 3:20 
AnswerRe: Which one makes for faster programs: DLLs or static libraries??? Pin
cmk30-Oct-03 11:42
cmk30-Oct-03 11:42 
You missed another distinction : static link dll's (bound at compile time) and dynamic link dll's (loaded at run time).

Regardless, the time differences between the 3 are generally orders of magnitude less than the time an actual function takes to run.

There are also other effects that are out of the control of the application that would make measuring such differences difficult. e.g. just because the static lib is linked into the exe doesn't mean the code is in physical memory - it may be paged out, whereas a dll that's shared amongst several (running) programs may have a better chance of having it's code in physical memory at any given time.


...cmk

Save the whales - collect the whole set
GeneralMFC Printing Pin
diseyi29-Oct-03 9:16
diseyi29-Oct-03 9:16 
GeneralRe: MFC Printing Pin
winalice29-Oct-03 9:36
winalice29-Oct-03 9:36 
GeneralRe: MFC Printing Pin
diseyi29-Oct-03 9:57
diseyi29-Oct-03 9:57 
GeneralRe: MFC Printing Pin
Steve S29-Oct-03 22:39
Steve S29-Oct-03 22:39 
GeneralControl window sizing... Pin
Nitron29-Oct-03 8:26
Nitron29-Oct-03 8:26 
GeneralNevermind... Pin
Nitron29-Oct-03 8:55
Nitron29-Oct-03 8:55 
GeneralRe: Nevermind... Pin
winalice29-Oct-03 9:37
winalice29-Oct-03 9:37 
GeneralRe: Nevermind... Pin
Nitron29-Oct-03 9:39
Nitron29-Oct-03 9:39 
GeneralRe: Control window sizing... Pin
winalice29-Oct-03 9:36
winalice29-Oct-03 9:36 
GeneralRe: Control window sizing... Pin
David Crow29-Oct-03 10:19
David Crow29-Oct-03 10:19 
QuestionMerging menus? Pin
Dominik Reichl29-Oct-03 8:22
Dominik Reichl29-Oct-03 8:22 
AnswerRe: Merging menus? Pin
igor196029-Oct-03 10:45
igor196029-Oct-03 10:45 
GeneralCreateWindowEx is stupid and nonsensical Pin
super_matt29-Oct-03 7:56
super_matt29-Oct-03 7:56 
GeneralRe: CreateWindowEx is stupid and nonsensical Pin
alex.barylski29-Oct-03 10:03
alex.barylski29-Oct-03 10:03 
GeneralRe: CreateWindowEx is stupid and nonsensical Pin
super_matt29-Oct-03 11:17
super_matt29-Oct-03 11:17 
GeneralRe: CreateWindowEx is stupid and nonsensical Pin
Steve S29-Oct-03 22:43
Steve S29-Oct-03 22:43 
GeneralRe: CreateWindowEx is stupid and nonsensical Pin
David Crow30-Oct-03 2:18
David Crow30-Oct-03 2:18 

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.