-profile and the gc

kenny funisher at gmail.com
Mon Apr 30 04:24:04 PDT 2007


I had some array code that I had written and it was running horrendously slow. I ran the -profile flag and it didn't really help because it just told me that the slow function was slow...

I had a feeling that it was probably the way I was handling memory, so I prefeched 2000 places, then reset the length back to zero and turned off the GC. That sped up the code by like 3-4 times.

It would be really nice if -profile was telling me how much time each function was spending in GC related functions... Is this possible?



More information about the Digitalmars-d mailing list