• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Optimal read buffer size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimal read buffer size?


  • Subject: Optimal read buffer size?
  • From: Chaz McGarvey <email@hidden>
  • Date: Wed, 18 May 2005 12:06:46 -0600

Hello:

I find that when I write network code, I never really know how big I should make the read buffer. Some protocols have only short packets so I usually have a pretty small buffer, or only read in one packet at a time, but if I'm reading in a very big packet like a mult- megabyte resource download that I'm writing to disk, is there a sweet spot that requires the fewest read calls and doesn't waste (much) memory?

Thanks,
chaz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Optimal read buffer size?
      • From: Cameron Kerr <email@hidden>
    • Re: Optimal read buffer size?
      • From: Justin Walker <email@hidden>
  • Prev by Date: Re: Changing IP Address and Config method using the System configur ation framework.
  • Next by Date: Re: Optimal read buffer size?
  • Previous by thread: Re: Changing IP Address and Config method using the System configur ation framework.
  • Next by thread: Re: Optimal read buffer size?
  • Index(es):
    • Date
    • Thread