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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:12:19+00:00 2026-05-11T12:12:19+00:00

What is the overhead of generating a lot of temporary objects (i.e. for interim

  • 0

What is the overhead of generating a lot of temporary objects (i.e. for interim results) that ‘die young’ (never promoted to the next generation during a garbage collection interval)? I’m assuming that the ‘new’ operation is very cheap, as it is really just a pointer increment. However, what are the hidden costs of dealing with this temporary ‘litter’?

  • 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-11T12:12:20+00:00Added an answer on May 11, 2026 at 12:12 pm

    Not a lot – the garbage collector is very fast for gen0. It also tunes itself, adjusting the size of gen0 depending on how much it manages to collect each time it goes. (If it’s managed to collect a lot, it will reduce the size of gen0 to collect earlier next time, and vice versa.)

    The ultimate test is how your application performs though. Perfmon is very handy here, showing how much time has been spent in GC, how many collections there have been of each generation etc.

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

Sidebar

Related Questions

What is the overhead of using Java ORM for MongoDB, or its better that
I want a simple variant with minimal overhead that can be passed to functions
What is the overhead in the string structure that causes sizeof() to be 32
Is there any overhead using partial classes in case of memory, performance etc? If
What is the overhead for PPP and Ethernet sending 5000 bytes? Frame size for
Possible Duplicate: Memory overhead of Java HashMap compared to ArrayList I try to search
Does somebody know what is the memory overhead of a ConcurrentHashMap (compared to a
I would like a low-overhead method of monitoring the I/O of a Windows process.
C#: Which uses more memory overhead? A string or a char holding a sequence
Since TCP header is a relatively large overhead, why don't we compress it in

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.