Re: Need advice about [NSInputStream read:maxLength:] performance.
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