Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default endianess



On 1/21/06 4:23 AM, John Stiles didst favor us with:

> Rosyna wrote:
>>> there are lots of integer values in it that will need swapping, potentially
>>> hundreds of thousands of them for a single file, so I thought I should pick
>>> the format that's most likely to be native in the future. Some speculation
>>> is pretty much unavoidable here.

>> I'm designing a new file format and the nature of the data is such that
>> 
>> But won't doing that for older machines create a huge performance
>> burden that they may not be able to handle?

> Let's keep some perspective here. G4s and G5s aren't complete dogs. They
> can run Virtual PC and emulate WinXP at a passable speed (and the G5
> really is doing all the byteswapping on the CPU). Imagine how many
> byteswaps per second that bad boy's doing. I don't think a few million
> byteswaps during a file load will affect much of anything.
> 
I'm testing this with HostToLittle and it seems to perform fine on a G4. I
just figured it makes sense to eliminate the swapping as time goes on rather
than do more of it. I'll probably do some tests to compare swapping and
non-swapping to see if I can measure a difference.

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Default endianess (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.