Re: Network buffering question
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Tue, 29 Aug 2006 20:46:27 -0400
Alex Fraser wrote:
I disagree with Scott's suggestion of a large circular buffer. It is wasteful of memory and a long time ago I found it to have marginally lower performance than a simpler approach, which goes something like this:
Me too:) I suggested a large buffer, not a large circular buffer. What I use, and what your code also uses, is what I think of as a "slide down" buffer, where any remaining message fragment must be copied to the buffer start if it is too close to the end. Making the buffer large reduces the frequency of this copying.
--
Scott McPhillips [VC++ MVP]
.
- Follow-Ups:
- Re: Network buffering question
- From: Alex Fraser
- Re: Network buffering question
- From: Ed Prochak
- Re: Network buffering question
- References:
- Network buffering question
- From: Till Crueger
- Re: Network buffering question
- From: Alex Fraser
- Network buffering question
- Prev by Date: Re: Code Comprehension
- Next by Date: TextBox array in ASP
- Previous by thread: Re: Network buffering question
- Next by thread: Re: Network buffering question
- Index(es):
Relevant Pages
|