| normal new, slow delete |
[19 Dec 2005|11:28pm] |
Hi all, glad to be part of the community.
I have a strange problem: I'm writing an app that works with large data sets for Windows using VC7 and I have a function that dynamically allocates about 50MB in 10k chunks, so there are 5000 "new"s. This happens in a flash. Now, when I need to deallocate (5000 "delete"s), it takes 3sec on a fairly fast system (Athlon 64 3000+, 1GB PC400 RAM) and up to 20sec on a slower comp (Athlon XP-M 2000+, 256MB RAM).
This code's in a statically linked library, but when I copied and pasted into the main project (i.e. no .lib file, no static linking), it ran fine. I can't remove it from the library though, so that can't be a solution. Any ideas what it could be?
(P.S. I've upgraded to the latest VS.NET service pack)
|
|