[Adium-devl] Bonjour ToDos

Andreas Monitzer soc at monitzer.com
Fri Sep 14 12:32:36 UTC 2007


On Sep 14, 2007, at 14:15, Evan Schoenberg wrote:

> 1) Reduces overhead.  Needless thread switching is expensive; if all
> calls are non-blocking and individually cheap, there's no reason to be
> moving outgoing method calls to a secondary thread and then move
> incoming method calls back to the main thread.

Well, it might run faster on dual-core machines. However, speed isn't  
really an issue with Adium (maybe it will be in vv though, but that's  
a topic for another discussion).

> 2) Prevents crashiness.  http://smartcrashreports.com/dev/? 
> q=NDRunLoopMessenger&r=all
>   shows a bunch of crashes in the intrathread messaging class... all
> of which are connected to Bonjour.  I've spent a long time in the past
> trying to figure out what's going on with these sporadic crashes, to
> no avail.
> 3) Code simplification

I agree on those two.

andy





More information about the devel mailing list