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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:28:46+00:00 2026-05-10T16:28:46+00:00

The system I work on here was written before .net 2.0 and didn’t have

  • 0

The system I work on here was written before .net 2.0 and didn’t have the benefit of generics. It was eventually updated to 2.0, but none of the code was refactored due to time constraints. There are a number of places where the code uses ArraysLists etc. that store things as objects.

From performance perspective, how important change the code to using generics? I know from a perfomance perspective, boxing and unboxing etc., it is inefficient, but how much of a performance gain will there really be from changing it? Are generics something to use on a go forward basis, or it there enough of a performance change that a conscience effort should be made to update old code?

  • 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-10T16:28:47+00:00Added an answer on May 10, 2026 at 4:28 pm

    Technically the performance of generics is, as you say, better. However, unless performance is hugely important AND you’ve already optimised in other areas you’re likely to get MUCH better improvements by spending your time elsewhere.

    I would suggest:

    • use generics going forward.
    • if you have solid unit tests then refactor to generics as you touch code
    • spend other time doing refactorings/measurement that will significantly improve performance (database calls, changing data structures, etc) rather than a few milliseconds here and there.

    Of course there’s reasons other than performance to change to generics:

    • less error prone, since you have compile-time checking of types
    • more readable, you don’t need to cast all over the place and it’s obvious what type is stored in a collection
    • if you’re using generics going forward, then it’s cleaner to use them everywhere
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer http://www.php.net/manual/en/function.php-sapi-name.php function is_cli() { return php_sapi_name() === 'cli'; } May 11, 2026 at 10:03 am
  • added an answer Right click on the type of file you want in… May 11, 2026 at 10:03 am
  • added an answer AWT thread-safety is (necessarily) broken. Just don't go anywhere near… May 11, 2026 at 10:03 am

Related Questions

The system I work on here was written before .net 2.0 and didn't have
I am working on a course leaflet system for the college I work at,
The university I work at uses Oracle for the database system. We currently have
The company I work for we have a CBT system we have developed. We
I'm trying to get the {smartassembly} .NET obfuscator to work with my system. I
I am working with legacy systems at the moment, and a lot of work
The system I am currently working on requires some role-based security, which is well
The system I am using has gnuplot installed in /usr/bin . I don't have
Part of the system I'm working on at the moment involves a log in
The .NET web system I'm working on allows the end user to input HTML

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.