NSFileHandle, performance of socket writing
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