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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:16:20+00:00 2026-06-05T14:16:20+00:00

Quite an academic question this – I’ve had it remarked that a class I’ve

  • 0

Quite an academic question this – I’ve had it remarked that a class I’ve written in a WCF service is very long (~3000 lines) and it should be broken down into smaller classes.

The scope of the service has grown over time and the methods contained contain many similar functions hence me not creating multiple smaller classes up until now so I’ve no problem with doing so (other than the time it’ll take to do so!), but it got me thinking – is there a significant performance overhead in using a single large class instead of multiple smaller classes? If so, why?

  • 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-06-05T14:16:22+00:00Added an answer on June 5, 2026 at 2:16 pm

    It won’t make any noticeable difference. Before even thinking about such extreme micro-optimization, you should think about maintainability, which is quite endangered with a class of about 3000 LOC.

    Write your code first such that it is correct and maintainable. Only if you then really run into performance problems, you should first profile your application before making any decisions about optimizations. Usually performance bottlenecks will be found somewhere else (lack of parallelization, bad algorithms etc.).

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

Sidebar

Related Questions

Quite new to this but i have created a SQL script that groups by
Quite a complex question: At the moment I have a table called timetable. This
quite some time ago i noticed that in Visual C++ 10 ADL fails when
This might be an odd question, but it has actually caused me some headache.
Quite often see in JavaScript libraries code like this: setTimeout(function() { ... }, 0);
Quite stumped on this one. I am using the Youtube JS API to determine
To quote PHP: Anonymous functions are currently implemented using the Closure class. This is
Quite a few years ago, I remember that I struggled with a multiple site
Quite simple question, and I really wanna know the reason (the real reason) behind
Quite by accident today, I discovered that in IE6, IE7 and IE8 it is

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.