Performance vs. Object Oriented Design(atalasoft.com)
submitted by
tomdog(3230) 3 years, 9 months ago
After getting basic functionality up and running, I found that the biggest chunk of time was getting lost in operator new. In this particular chunk of code, I had some simulated recursion that was making lots and lots of little objects that were being pushed and popped onto a stack. The issue was that these objects are tiny and transient. This means that all the overhead imposed by new and delete will get charged again and again and again - what to do? [Sample code provided]
|category: Tips & Tricks
|Views: 33
tags:
Tips another
Everyones tags:
Your Tags: