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

  • Home
  • SEARCH
  • 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 7158395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:03:32+00:00 2026-05-28T13:03:32+00:00

I have been trying to optimize an ASP.NET C# application for a few days

  • 0

I have been trying to optimize an ASP.NET C# application for a few days and I am curious of some issues.

Using the PageSpeed Firefox plug in i was able to track down and eliminate some unnecessary ajax calls and enabled caching of static resources, but there are still considerable performance issues.

When opening any given page there are roughly 25 requests to the server (ajax, automatic post backs, static content) and one of the issues that PageSpeed pointed out was that the request size was too high, more specifically the cookie size is 1.4KB. As i understand it from other sources the cookies get passed to the server with each request. I’ve also read about a solution, “Cookie free domains for static content”, but that is not an option as I am not in control of the application structure and hosting environment.
The cookies are written and read using a memory stream and a System.Runtime.Serialization.Formatters.Binary.BinaryFormatter object to serialize a list of custom objects (2 fields and 2 properties for those fields, a bit redundant for BinaryFormatter).

My questions are:

  1. How much can such large request influence performance?
  2. Are they enough to cause the server to hang/crash? (it happens frequently)
  3. Is there a way to considerably reduce the size of the output of the BinaryFormatter?
  4. I know serializing objects into cookies is not a good idea, so will replacing the serialization of objects into cookies with strings that will be parsed solve my performance issues?
  5. As I’ve said the pages use some automatic post backs and i can debug andvatch the cookies get read (deserialized), written (serialized) around 5 times before a page loads. Does this have such an adverse effect on performance as to cause the server to hang/crash?

Thanks and have a nice day,

  • 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-28T13:03:33+00:00Added an answer on May 28, 2026 at 1:03 pm

    You could just try to use a server-side “cookie-store” (NoSQL?) and just save an identifier in the actual coockie and see what happens, because big cookies are bad (think of slow internet connections with even slower upload speed)…

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

Sidebar

Related Questions

I have been trying to optimize some code which handles raw pixel data. Currently
I have VS2005 and I am currently trying to debug an ASP.net web application.
I've been trying to optimize a numeric program of mine, and have run into
I have been working on this for 24 hours now, trying to optimize it.
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I am trying to optimize some arithmetic by using the MMX and SSE instruction
I have been working in trying to optimize a webservice that is required to
I'm trying to optimize query performance and have had to resort to using optimizer
I have a asp.net-mvc website with a SQL server backend (using nhibernate for OR
I have been trying to optimize this code: def spectra(mE, a): pdf = lambda

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.