I have a C++ application where the "delete" function is slow to run. What might cause this and where should I begin my search for a solution?
Background:
This C++ code is in an ARX file running inside of AutoCAD, which is basically just a DLL.
The specific computer where delete is slow is running AutoCAD 2011, Windows 7, 64-bit. ARX's for AutoCAD 2011 have to be compiled using Visual Studio 2008 Service Pack 1.
The computer with the problem is a customer's computer. It does not have any version of Visual Studio installed on it.
On my development computer, the code does not have any problem in AutoCAD 2011.
To test, I have some code that deletes a linked list. On the computer with the problem, it takes 0.7 seconds to delete the list. On the computers and configurations without the problem, the same code takes 0.02 seconds. The specific times are not important--the large different between the two numbers is.
I made sure to be running the same version of the code on both computers, so it is not a release versus debug build problem.
Roughly in the order I'd check them:
new
's take unusually long? How are the individual delete
times distributed?If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With