G4/G5 Optimized Adium build?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
spaceballl
Harmless
Posts: 18
Joined: Sat Feb 19, 2005 7:36 pm
Contact:

G4/G5 Optimized Adium build?

Post by spaceballl »

I know SVN shouldn't be discussed here... but to be fair, this applies to ALL builds of Adium. So once the Mac community really got a hold of the Firefox source code, G4 and G5 optimized builds surfaced... I feel like there are a few compiler extensions to produce this? Correct? Is it possible to do this on our own w/ Adium?

-Kevin
unfortunate
Muffin
Posts: 39
Joined: Mon Feb 14, 2005 7:38 pm
Location: Seattle
Contact:

Post by unfortunate »

i don't see what needs to be optimized on adium?
Observing the Unobserved - .:UNEASYsilence:.
User avatar
bgannin
Growl Team
Posts: 1817
Joined: Thu Dec 02, 2004 8:11 am
Location: ..here
Contact:

Post by bgannin »

There is no need for processor specific optimizations. The system itself is optimized as needed, not to mention Adium relies on a fair number of platform-agnostic code parts that won't processor optimize. Let's not go hunting for more work when it's not necessary.

G5-specific optimization should only occur in apps that need to work with the extended memory addresses (such as a massive scientific calculations and whatnot that can use more space in which to store and compute in memory and processor)
Try my software!

#define ADIUMX pimp //by me
#define QUESTION ((2b) || (!2b))
Have you hugged a programmer today?
User avatar
Catfish_Man
Cocoaforge Admin
Posts: 1203
Joined: Thu Dec 02, 2004 6:30 am
Location: Portland, Oregon
Contact:

Post by Catfish_Man »

bgannin: all they're asking for is -mcpu=7450 -mtune=7450, nothing exotic (and nothing that would do anything noticeable...)
wtmcgee
Harmless
Posts: 21
Joined: Mon Dec 06, 2004 12:48 am

Post by wtmcgee »

Those g5 optimized firefox builds have started an onslaught of these types of posts in all different types of forums.
spaceballl
Harmless
Posts: 18
Joined: Sat Feb 19, 2005 7:36 pm
Contact:

Post by spaceballl »

Yah i was just looking for the -7450 command line arguments when compiling from source. Obviously AdiumX is pretty snappy on my system, but if there are optimizations to be made, I don't see the harm. My G4 optimized Firefox build is much faster than the standard one. But if you say it is not any faster, I'll take your word for it.
-Kevin
User avatar
Catfish_Man
Cocoaforge Admin
Posts: 1203
Joined: Thu Dec 02, 2004 6:30 am
Location: Portland, Oregon
Contact:

Post by Catfish_Man »

spaceballl wrote:Yah i was just looking for the -7450 command line arguments when compiling from source. Obviously AdiumX is pretty snappy on my system, but if there are optimizations to be made, I don't see the harm. My G4 optimized Firefox build is much faster than the standard one. But if you say it is not any faster, I'll take your word for it.
-Kevin
Most likely they're using some other optimization flags as well. -O3 or -Os instead of -O2 for example. Adium is built with -Os.
User avatar
dchoby98
Adium Team
Posts: 479
Joined: Thu Dec 02, 2004 6:17 am
Location: Canada, Eh?
Contact:

Post by dchoby98 »

You are welcome to build your own G4 or G5 optimized build, but as Brian noted, you won't see much difference (really, you will probably feel NO difference -- we just don't have any code that can be optimized that way). For those reasons, we will not be releasing optimized builds of Adium -- it's unnecessary and even gives the wrong impression.
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

Man these g3 optimized adium builds rock!!


oh wait, it runs the same on a g4.... and on a g5..


Man my g3 rocks! It's as fast as a g5 is!
unfortunate
Muffin
Posts: 39
Joined: Mon Feb 14, 2005 7:38 pm
Location: Seattle
Contact:

Post by unfortunate »

The_Tick wrote:Man these g3 optimized adium builds rock!!


oh wait, it runs the same on a g4.... and on a g5..


Man my g3 rocks! It's as fast as a g5 is!
lol got a chuckle out of that one
Observing the Unobserved - .:UNEASYsilence:.
spaceballl
Harmless
Posts: 18
Joined: Sat Feb 19, 2005 7:36 pm
Contact:

Post by spaceballl »

Okay so thanks for the reply... so maybe this is the wrong place to ask technical questions like this, but... why won't adding the command line options for G4/G5 optimization make it any faster? Is it because Adium is already so low on CPU usage in the first place? Would this make it less? Sorry to bother...

-Kevin
toby
Harmless
Posts: 7
Joined: Thu Dec 02, 2004 5:35 pm
Location: Cupertino, CA
Contact:

Post by toby »

spaceballl wrote:Okay so thanks for the reply... so maybe this is the wrong place to ask technical questions like this, but... why won't adding the command line options for G4/G5 optimization make it any faster? Is it because Adium is already so low on CPU usage in the first place? Would this make it less? Sorry to bother...
No, it's because compiler optimization is essentially pointless. For more information, see http://funroll-loops.org/
User avatar
dchoby98
Adium Team
Posts: 479
Joined: Thu Dec 02, 2004 6:17 am
Location: Canada, Eh?
Contact:

Post by dchoby98 »

G4 and G5 optimization basically helps with:

1) Things that could use AltiVec -- i.e. crazy math operations. We don't do a lot of heavy math.
2) Things which would benefit from being 64-bit optimized (G5's) -- definitely nothing in Adium.
3) Some graphics code -- but the code would probably not be anything in Adium. You might see your contact list update a bit faster, but is that really a problem?
User avatar
Catfish_Man
Cocoaforge Admin
Posts: 1203
Joined: Thu Dec 02, 2004 6:30 am
Location: Portland, Oregon
Contact:

Post by Catfish_Man »

dchoby98 wrote:G4 and G5 optimization basically helps with:

1) Things that could use AltiVec -- i.e. crazy math operations. We don't do a lot of heavy math.
2) Things which would benefit from being 64-bit optimized (G5's) -- definitely nothing in Adium.
3) Some graphics code -- but the code would probably not be anything in Adium. You might see your contact list update a bit faster, but is that really a problem?
Actually... not really. -mcpu and -mtune just change instruction choice and scheduling, so they apply to pretty much any kind of code. That said, the effect is extremely minimal in almost all situations. Altivec, at this point, has to be explicitly used, and is often explicitly scheduled, so it doesn't really apply to that.
Post Reply