• 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
NSFileHandle, performance of socket writing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileHandle, performance of socket writing


  • Subject: NSFileHandle, performance of socket writing
  • From: "Doo-Hyun Jang" <email@hidden>
  • Date: Wed, 28 May 2008 18:18:32 +0900

I make file transfer part that will be used IM.
but, it's speed was slow, the speed of transfer was measured about
20~30KByte in local network.

I had profiling with shark.

- 24.9% mach_kernel ml_set_interrupts_enabled
  ...
  ...
       - 15.9% mach_kernel find_user_regs
  ...
more detail :
http://farm3.static.flickr.com/2381/2529757286_4ac962eb79_o.png


file transfer part is simple, like this

NSFileHandle *mSocketHandle;
...
[mSocketHandle writeData:[aPacket data]];
...

why it's so slow?

is it osx's system problem?

what can I do for speed-up?

thanks
( sorry about poor my english )

--
Doo-Hyun Jang
[Blog]
Old : http://lum7671.egloos.com
New : http://lum7671.blogspot.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSFileHandle, performance of socket writing
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Cover Flow in Cocoa?
  • Next by Date: Time management
  • Previous by thread: Re: Storing miscellaneous singleton data in CoreData app?
  • Next by thread: Re: NSFileHandle, performance of socket writing
  • Index(es):
    • Date
    • Thread