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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:21:34+00:00 2026-05-13T21:21:34+00:00

I am working on an asp.net web site that is based upon a single

  • 0

I am working on an asp.net web site that is based upon a single gateway page that typically handles all requests and responses. There are a number of classes that get called by the gateway page depending on what’s going on, but there is a lot of code within the main gateway page, split into lots of methods. I understand that the JIT compiler will only load and JIT methods as they become required, and therefore the smaller my methods the better. However, my question is this: does it matter if I have thousands of lines and hundreds of methods within the same aspx.cs file? Should I try to break down the functionality into smaller source files, classes and namespaces? Or in reality will this not make much difference because the .net runtime will only jit and load each method as it becomes necessary? I appreciate people may have coding style contributions here, but I’m realy interested to know exactly what .NET is doing technically so I can make my decision based upon pure performance criteria. Thanks very much. If I do ‘refactor’, what sort of performance difference might I expect to see?

  • 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-13T21:21:35+00:00Added an answer on May 13, 2026 at 9:21 pm

    There is no performance issue just because it is in a single file. The issue you have is primarily around maintenance, lack of focus on coding best practices and testability.

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

Sidebar

Related Questions

I have a web site that is designed in asp.net and working fine in
i developed an asp.net site using forms based authentication, that site is working when
I'm working on a functionality in my asp.net web site that enables the user
I'm currently working on an ASP.NET web-site. In one of my pages, I had
I'm working on a ASP.NET Dynamic Data web site with a Linq to SQL
I'm working on a web site where the new pages are ASP.NET and the
I have an iPad app that submits orders to an ASP.NET MVC web site
I have an ASP.NET web site (blog based on blogengine.net). I want to perform
I am working on a asp.net web site, like normal user, we use asp.net
I'm working on an asp.net web site. We have to use com interop to

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.