• 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
Re: The efficiency of swapping endianness on an iPhone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >The efficiency of swapping endianness on an iPhone? (From: Harry G <email@hidden>)

  • Prev by Date: Re: Daylight Savings Time
  • Next by Date: Re: Best way to pass large objects between tasks?
  • Previous by thread: Re: The efficiency of swapping endianness on an iPhone?
  • Next by thread: C: treated as a path component
  • Index(es):
    • Date
    • Thread