Re: The efficiency of swapping endianness on an iPhone?
Re: The efficiency of swapping endianness on an iPhone?
- Subject: Re: The efficiency of swapping endianness on an iPhone?
- From: Marcel Weiher <email@hidden>
- Date: Wed, 15 Apr 2009 16:31:10 -0700
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 (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