Fast, synchronous Objective-C wrapper around BSD sockets for iOS and OS X
1–4 of 4 posts
Re: Fast, synchronous Objective-C wrapper around BSD sockets for iOS and OS X
#2Re: Fast, synchronous Objective-C wrapper around BSD sockets for iOS and OS X
#3Are you claiming that synchronous network IO is faster than async? Do you have benchmarks?
When I first implemented this class, I was upgrading a file caching client that talked to a custom file server. It kept about 80,000 files (about 16GB) in sync with the set of files on the server. The unoptimized Mac process started out about 40% slower than the Windows equivalent client. Afterwards, the Mac client was about 15% faster than Windows with no changes on the server. They couldn't get the Windows client to transfer as quickly as the optimized Mac client.
Could these optimizations be done in an asynchronous API? Sure. But as far as I can tell, none do. Maybe because they don't work directly with sockets. Normally that isn't a problem, unless you really need to push things across the network as fast as possible.
Re: Fast, synchronous Objective-C wrapper around BSD sockets for iOS and OS X
#4Are you claiming that synchronous network IO is faster than async? Do you have benchmarks?