Slow delete under MFC?
-
Ladies and Gents, Wrote a Win 32 app, which ran nicely thankyou, within it I had aggregate structures containing up to 800K instances of a Point class. All was well. When I ported it to run in under an MFC app, the delete of the top level container was taking > 5 seconds, where previously it was near instantaneous. It uses STL containers, all the usual speed up tricks, but simply moving the classes into an MFC app causes it to run very very slow.... when deleting. Anyone come across this?? Any idea's?? Cheers Laurence
-
Ladies and Gents, Wrote a Win 32 app, which ran nicely thankyou, within it I had aggregate structures containing up to 800K instances of a Point class. All was well. When I ported it to run in under an MFC app, the delete of the top level container was taking > 5 seconds, where previously it was near instantaneous. It uses STL containers, all the usual speed up tricks, but simply moving the classes into an MFC app causes it to run very very slow.... when deleting. Anyone come across this?? Any idea's?? Cheers Laurence
-
Are you compiling with debug enabled? MFC has a special new/delete for debug builds, that does a lot of memory leak checking. Great for debugging, but it slows it down a lot.
-
Ladies and Gents, Wrote a Win 32 app, which ran nicely thankyou, within it I had aggregate structures containing up to 800K instances of a Point class. All was well. When I ported it to run in under an MFC app, the delete of the top level container was taking > 5 seconds, where previously it was near instantaneous. It uses STL containers, all the usual speed up tricks, but simply moving the classes into an MFC app causes it to run very very slow.... when deleting. Anyone come across this?? Any idea's?? Cheers Laurence