Performance vs. Object Oriented Design(atalasoft.com)

submitted by tomdogtomdog(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]

add a comment |category: |Views: 33

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story