On Apr 14, 2009, at 17:22 , Harry G wrote:

Hi, I'm currently writing an app for iphone that downloads large tables of text and images , and my server outputs big endian.

Hmm...I would generally expect both text and images to be endian- neutral, are you sure byte-order is an issue?

How significant would the extra processing be to convert to small endian on the iPhone?

The absolute amount of time obviously depends on the amount of data.

However, I would expect the time to byte-swap to be insignificant compared to network transmission time. The best way is to try this out: write a small test program that calls NSSwapInt() on a well- specified amount of data and record the time. My results indicate that I can byte-swap around 80MB/s on my phone, confirming that for the networks currently available, you're not going to be bottle-necked on the byte-swapping. Again, I wouldn't take my word for it but try it myself.

Cheers,

Marcel

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to