• 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
Re: Need advice about [NSInputStream read:maxLength:] performance.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need advice about [NSInputStream read:maxLength:] performance.


  • Subject: Re: Need advice about [NSInputStream read:maxLength:] performance.
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Wed, 09 Sep 2015 22:37:50 +0100

On 9 Sep 2015, at 22:07, Motti Shneor <email@hidden> wrote:

> My question: is there a special penalty or cost for calling the read:maxLength: frequently?

While it's not exactly the same, you should think of -read:maxLength: on a socket stream as having roughly the same performance of <x-man-page://2/read>.  If you care about performance you should read into a buffer and parse from there.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
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


References: 
 >Need advice about [NSInputStream read:maxLength:] performance. (From: Motti Shneor <email@hidden>)

  • Prev by Date: Need advice about [NSInputStream read:maxLength:] performance.
  • Next by Date: Re: Need advice about [NSInputStream read:maxLength:] performance.
  • Previous by thread: Need advice about [NSInputStream read:maxLength:] performance.
  • Next by thread: Re: Need advice about [NSInputStream read:maxLength:] performance.
  • Index(es):
    • Date
    • Thread