DLL Processing Speed,
-
I have an application that uses a ISA card to control motion of flight simulator. The ISA card is controlled by C++ classes inside MFC Application. I recently decide to package the ISA card C++ control class into it's own DLL. This will enable me to use other manufacture motion cards at a later date. However, After placing the code into a DLL and change the application to load the library DLL and at start up. I find the application is not performing as fast as it use to? How much overhead does a DLL really add? Is it possible that DLL is my problem here? Where does the dll get it's runtime priority? Is it from the calling appication or do i have to sent it myself. Scott 732-300-9956
Scott Dolan Jernie Corporation Engineering & Manufacturing Software, Hardware, & Enclosures
-
I have an application that uses a ISA card to control motion of flight simulator. The ISA card is controlled by C++ classes inside MFC Application. I recently decide to package the ISA card C++ control class into it's own DLL. This will enable me to use other manufacture motion cards at a later date. However, After placing the code into a DLL and change the application to load the library DLL and at start up. I find the application is not performing as fast as it use to? How much overhead does a DLL really add? Is it possible that DLL is my problem here? Where does the dll get it's runtime priority? Is it from the calling appication or do i have to sent it myself. Scott 732-300-9956
Scott Dolan Jernie Corporation Engineering & Manufacturing Software, Hardware, & Enclosures
ScotDolan wrote:
Where does the dll get it's runtime priority? Is it from the calling appication or do i have to sent it myself.
DLLs don't have a priority - threads and processes do. So, yes, the priority of the DLL's code will come from the calling app.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
I have an application that uses a ISA card to control motion of flight simulator. The ISA card is controlled by C++ classes inside MFC Application. I recently decide to package the ISA card C++ control class into it's own DLL. This will enable me to use other manufacture motion cards at a later date. However, After placing the code into a DLL and change the application to load the library DLL and at start up. I find the application is not performing as fast as it use to? How much overhead does a DLL really add? Is it possible that DLL is my problem here? Where does the dll get it's runtime priority? Is it from the calling appication or do i have to sent it myself. Scott 732-300-9956
Scott Dolan Jernie Corporation Engineering & Manufacturing Software, Hardware, & Enclosures
Hi, if your program's performance isn't what it used to be, then you must have changed something. Assuming all the functions and data structures remained the same, it must be related to compiler/linker settings, e.g. maybe your EXE was and still is optimized, but your new DLL is not? I suggest you compare the DLL settings with the current or previous EXE settings. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in