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

Related Questions

being new to c# I've run into this 'conundrum' when passing around a SqlDataReader
It appears that CPUs run significantly faster if their L2 is not filled. Will
I'm curious what the cost is on modern CPUs in terms of cycles to
A programmatic way to discover the number of CPUs and spec for each CPU/Core
On CPUs like x86, which provide cache coherency, how is this useful from a
Do different x86 CPUs (with build-in FPUs and reasonably recent, say launched this millenium)
Single core CPUs or a machine with a single CPU cannot do parallel processing.
Possible Duplicate: Would a multithreaded Java application exploit a multi-core machine very well? I
I want to know the number of CPUs on the local machine using Python.
In HPUX the command machinfo list machine information such as Number of CPUs, Clock

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.