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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:50:11+00:00 2026-05-11T00:50:11+00:00

the other day a colleague of mine stated that using static classes can cause

  • 0

the other day a colleague of mine stated that using static classes can cause performance issues on multi-core systems, because the static instance cannot be shared between the processor caches. Is that right? Are there some benchmarks around proofing this statement? This statement was made in the context of .Net development (with C#) related discussion, but it sounds to me like a language and environment independent problem.

Thx for your comments.

  • 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-11T00:50:12+00:00Added an answer on May 11, 2026 at 12:50 am

    I would push your colleague for data or at least references.

    The thing is, if you’ve got shared data, you’ve got shared data. Whether that’s exposed through static classes, a singleton, whatever, isn’t terribly important. If you don’t need the shared data in the first place, I expect you wouldn’t have a static class anyway.

    Besides all of this, in any given application there’s likely to be a much bigger bottleneck than processor caches for shared data in static classes.

    As ever, write the most sensible, readable, maintainable code first – then work out if you have a performance bottleneck and act accordingly.

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

Sidebar

Related Questions

The other day I saw a colleague of mine using sort to sort a
I noticed the other day that I can call boolean.class, but not integer.class (or
The other day i just happened to visit this site :- http://www.peter-pearson.com/ Can anybody
The other day I was implementing an important service in my application, that should
a colleague pointed me the other day to BCEL which , as best I
I noticed te other day I can joins in mysql just as easily by
The other day I was trying to code a small C++ programming using the
Just started python the other day, new to the entire concept of multi-threading. I
I noticed the other day that when I took a photo on Windows Phone
I realized the other day that most common lisp had 128-bit long-floats. As a

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.