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 986565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:20:21+00:00 2026-05-16T05:20:21+00:00

Okay so my situation at work is that I’ve written about 200 or so

  • 0

Okay so my situation at work is that I’ve written about 200 or so lines of additional functionality into an aspx page’s code-behind that is currently not to be implemented. It is in a subroutine that handles an event that currently has zero chance of occurring.

Because this code is not being used, I’ve gotten curious. Should I comment out the subroutine that has zero chance of firing? Would it do anything to enhance the performance of the page or anything like that if I did indeed comment it out? Or could/should I just leave it as is? Thanks in advance.

  • 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. Editorial Team
    Editorial Team
    2026-05-16T05:20:21+00:00Added an answer on May 16, 2026 at 5:20 am

    A few comments:

    1. Performance is often quite unintuitive, there’s no substitute for careful measurement.
    2. Any compiled code in your address space consumes resources. So there might be some overhead. But how much relative to everything else happening? My guess is very little or even negligible but see item 1.
    3. Unexpected things happen as applications scale, negligible things can become important when they are copied multiple times. So prefer to keep things tidy.
    4. If you are using a source code management system then simply delete the code, it’s saved in the old versions in the repository. Keep your code tidy. Commented-out code scares the maintainer.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, here's the situation: We have a table of about 50 columns (created by
Okay, here's my situation. I have a WPF app that I have created that
OKAY! Here's the situation. I've got a jQuery plugin that's animating a background-image in
Okay so here is my situation. About a year ago I released my very
Okay so here's the situation. I have this page of data. After the data
Okay, the code below works in that when you scroll to the bottom of
Okay, here a situation: 1) I have a Panel called panel1 that consist one
Okay, weird situation: I need to Debug a VSTO Office Addin. This was written
Okay here's the situation. Net 4 WPF NO Silverlight. I have several Views that
Edit: Here's a Fiddle of the situation. Okay, so I'm building a web page,

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.