Could universal apps be faster if....

Discussion in 'Mac Apps and Mac App Store' started by nimr0d, Jul 22, 2006.

  1. nimr0d macrumors member

    Joined:
    Jan 31, 2006
    #1
    They were just intel native apps? Does the extra code put into the programs make them run slower on either platform? If a program was made just for intel macs, and the same program was made universal, would the just intel one run faster?
     
  2. Oryan macrumors 6502a

    Oryan

    Joined:
    Apr 1, 2005
    Location:
    Lincoln, NE
    #2
    As far as I understand it, Universal apps contain binaries (compiled code) for both PPC and Intel architectures. There isn't any Just-In-Time compilation like in MS.NET applications so you wouldn't receive any performance boost by not having the PPC code there. However, some people have created programs that strip out the PPC code to shrink the Universal apps' file size.
     
  3. Makosuke macrumors 603

    Joined:
    Aug 15, 2001
    Location:
    The Cool Part of CA, USA
    #3
    No.

    As pointed out above, it's just two different binares sharing the same icon. You can delete one and make it not universal if you so choose.

    Now, the process of *coding* for a universal binary could, in theory, lead to lower perofrmance, if the programmer didn't do any architecture-specific optimization. But a good programmer could just as easily specifically optimize an app for both the G5 and Core Duo with some extra work, so again, it's not a matter of the system but of the individual app.

    And note that I'm not talking about compiler optimizations--pretty sure those can be included for multiple architectures, if you want.
     

Share This Page