c++ - Slow performance on x64 free -
i have class (assume malloc's succeedes)
class cmyclass { public: cmyclass() { lpdata = malloc(128); }; ~cmyclass() { free(lpdata); }; public: lpvoid lpdata; };
then execute this:
cmyclass *lplist = new cmyclass[32768]; delete [] lplist;
the problem in x86 code works fine , fast (some milliseconds complete in debug , release builds) in x64 delete call takes 15 seconds free memory.
o.s. win7 x64.
hints appreciated.
regards, mauro.
it possible if running test app through debugger hitting performance issue windows debug heap. add _no_debug_heap=1
environment settings debuggee (in project properties->configuration properties->debugging->environment property under visual studio 20xx) , see if improves deallocation perf.
Comments
Post a Comment