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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:09:34+00:00 2026-05-26T20:09:34+00:00

Just a performance question … Let’s say I have 5 classes and each of

  • 0

Just a performance question …

Let’s say I have 5 classes and each of them have a reference to System.Data and a homegrown Library. The 5 classes in question are a part of a Class Library and will eventually be built and published up to some web applications as a reference.

Is there any size/performance gained by taking the functions that reference System.Data and the other Library to their own class so that the number of times System.Data and my other Library gets referenced is reduced from 5 to 1? Common Sense is telling me that it doesn’t matter because the DLLs would get read at the point of one of those functions being executed so it wouldn’t matter where they sit or how many times you have “using System.Data” in your codebase … but I’ve been wrong before 🙂

  • 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-26T20:09:34+00:00Added an answer on May 26, 2026 at 8:09 pm

    No – using directives don’t add references to assemblies; they import namespaces for code in the same scope. All they’re doing is allowing you to use

    Foo foo = new Foo(); // etc
    

    in your code instead of

    Some.Namespace.Containing.Foo foo = new Some.Namespace.Containing.Foo();
    

    They don’t change which assemblies are being referenced at all. It’s important to understand the different between namespaces and assemblies – unfortunately as they often use the same names, it can be confusing. As an example of where they’re different, the Enumerable class in the System.Linq namespace is in the System.Core assembly.

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

Sidebar

Related Questions

Just a quick question, does anyone know if there are restrictions on creating Performance
I just finished reading this post: https://developer.yahoo.com/performance/rules.html#flush and have already implemented a flush after
I just started out with C and have very little knowledge about performance issues
This is a performance based question. I have developed a Java EE Webservice Application
the question is one of design. i'm gathering a big chunk of performance data
Just a quick question. Is there any performance difference between using PDO::fetchAll() and PDO::fetch()
This is just a general question relating to some high-performance computing I've been wondering
Just a quick question. Other than the way you manipulate them, are XMLDocuments and
I'm just starting to look in to caching to improve performance and have a
I have a best practices/performance question. I am creating an ASP.NET MVC 2 project,

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.