Tuesday, November 12, 2019

Performance difference b/w heap allocated object and stack allocated object in c++

I wanna know the performance difference b/w




sample *s = new sample();


and



sample s;


where sample is a class.

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...