Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 105617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:28:03+00:00 2026-05-11T01:28:03+00:00

With CPUs being increasingly faster, hard disks spinning, bits flying around so quickly, network

  • 0

With CPUs being increasingly faster, hard disks spinning, bits flying around so quickly, network speeds increasing as well, it’s not that simple to tell bad code from good code like it used to be.

I remember a time when you could optimize a piece of code and undeniably perceive an improvement in performance. Those days are almost over. Instead, I guess we now have a set of rules that we follow like ‘Don’t declare variables inside loops’ etc. It’s great to adhere to these so that you write good code by default. But how do you know it can’t be improved even further without some tool?

Some may argue that a couple of nanoseconds won’t really make that big a difference these days. The truth is, we are stuck with so many layers that you get a staggering effect.

I’m not saying we should optimize every little millisecond out of our code as that will be expensive and unfeasible. I believe we have to do our best, given our time constraints, to write efficient code as well.

I’m just interested to know what tools you use to profile and measure performance of code, if at all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:28:03+00:00Added an answer on May 11, 2026 at 1:28 am

    There’s a big difference between ‘good’ code and ‘fast’ code. They aren’t exactly separate from each other either, but ‘fast’ code doesn’t mean ‘good’. Often times, ‘fast’ actually means bad code because readability compromises must be made to make it fast.

    The way I look at it, hardware is cheap, programmers are expensive. Unless there is a serious performance problem with some piece of code, you should never have to worry about speed. If there are performance problems, you’ll notice them. Only when you notice the performance problem on good hardware should you have to worry about optimization (in my opinion)

    If you reach the point where your code is slow, but you can’t figure out why, I’d use a profiler like ANT, or dotTrace if you’re in the .NET world (I’m sure there are others out there for other platforms & languages). They’re pretty useful, but I’ve only ever had one situation where I needed a profiler to identify the problem. It was something that now that I know the issue, I won’t need a profiler again to tell me it’s a problem because I’ll never forget the amount of time I spent trying to optimize it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer All the fun stuff happens in this line: IL_0014: callvirt… May 12, 2026 at 1:03 am
  • Editorial Team
    Editorial Team added an answer Both ways look like they would consume roughly similar space… May 12, 2026 at 1:03 am
  • Editorial Team
    Editorial Team added an answer First of all, you should never use backticks unless you… May 12, 2026 at 1:03 am

Related Questions

I have a multithreaded server C++ program that uses MSXML6 and continuously parses XML
Out of order execution in CPUs means that a CPU can reorder instructions to
So, I'm toying around with Stackless Python and a question popped up in my
I've been asked to measure the performance of a fortran program that solves differential

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.