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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:27:15+00:00 2026-05-29T06:27:15+00:00

I was wondering, how fast the HTTPWebRequest is in comparision with a self-written parser

  • 0

I was wondering, how fast the HTTPWebRequest is in comparision with a self-written parser for the HTTP-Response.

I know the HTTPWebRequest class is capable of using a persistent TCP connection with pipelining (pipelining is enabled by default). It’s also possible to set values for caching and compression.

The parsing of the response is probably never the bottleneck, but just for my curiosity: Does the HTTPWebRequest class produce “unnecessary” overhead?

  • 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-29T06:27:16+00:00Added an answer on May 29, 2026 at 6:27 am

    Without knowing what the self-written parser is, it’s not possible to give a quantified answer to your question. That said, you might be able to write a parser that is quicker than HTTPWebRequest, if (for example):

    • Your response will only ever contain a certain set of headers
    • The headers will only ever be returned in a certain order
    • Your request will only ever go to one destination
    • Any other constraints you can use to limit the processing that will be performed on the response

    If you can constrain the scenario, you may be able to outperform HTTPWebRequest as it has to be able to handle any valid response, whereas a custom parser has to only be able to handle scenarios it’s expecting. That said, bear in mind that what you’re writing won’t then be a true HTTP response parser, rather something that handles a strict sub-set of valid responses.

    The only way you can tell if there’s any overhead which you can avoid is by writing your own (sub-set) parser and comparing its performance to that of the in-built one.

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

Sidebar

Related Questions

I wondering about sense of using XmlDocument class to processing a small XML files.
NodeJS is a fantastic tool and blazing fast. I'm wondering if HTTPClient supports cookies
Hey you lot (again), I was wondering if anyone knew a fast and easy
Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality.
I'm wondering how fast I can take pictures one after another withoud surprises from
It seems to be pretty fast already and i was just wondering if anyone
I was wondering what is the best XML Library in C++ (I'm using Visual
Wondering if there is a fast way, maybe with linq?, to convert a Dictionary<string,string>
I'm wondering because I need to have have a function that is disgustingly fast
i was wondering if there is a fast way to clear cache on 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.