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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:54:20+00:00 2026-06-01T14:54:20+00:00

I am writing an application in .NET 4.0 C#. I am placing objects in

  • 0

I am writing an application in .NET 4.0 C#. I am placing objects in the .net httpruntime cache and want to produce some stats on it. I would like to know the size of the object before it put in to cache and the size of it in cache. How can I measure this? Is it serialized when put in to cache and if so what type of serialization is used?

  • 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-01T14:54:21+00:00Added an answer on June 1, 2026 at 2:54 pm

    The HTTP Runtime Cache does not serialize data at all, it just places it in a hash table:

    What is the default serialization used by the ASP.net HttpRuntime.Cache

    There are several methods to get or estimate the size of a .NET object in memory:

    How to get object size in memory?

    https://stackoverflow.com/a/1128674/141172

    It’s not possible to directly know the number of bytes consumed by a .NET object:

    http://blogs.msdn.com/b/cbrumme/archive/2003/04/15/51326.aspx

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

Sidebar

Related Questions

I'm writing a small application in VB.NET and I would like some of the
I'm writing a small .NET application that can produce SWF files, and I need
I'm writing a ASP.NET application used within our company. Now I want to send
I'm writing a standalone application in VB.NET using Visual Studio 2005. I want to
I'm writing an application in VB.net that creates and calls batch files. I'd like
I am writing application on C++ .NET in Visual Studio 2008. I want to
I am writing application on C++ .NET in Visual Studio 2008. I want to
I'm writing a .NET application that presents a Tree/List view of objects in the
I am writing a .net application that is taking form information to do some
I am writing a .NET application that can communicate with HID devices. I want

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.