[Adium-devl] "Debug logger" plugin

Evan Schoenberg evan at adiumx.com
Fri Feb 9 20:01:38 UTC 2007


On Feb 9, 2007, at 2:43 PM, Peter Hosey wrote:

> I'm not convinced that it's such a huge slowdown. I contend that  
> the slowness of the current debug logger comes from three sources:
>  * NSTextView (if the debug log window is open)
>  * File I/O (if write-to-file is turned on)
>  * String formatting

My objection primarily is that the third source of slowdown you list  
is present for non-trivial debug messages even if messaging nil... As  
the arguments to [nil printThis:[foo returnAString] andThis:[bar  
returnAnotherString]] are evaluated before the do-nothing of nil  
happens.  Is this based on a misconception?  If it isn't, and debug  
logging were always compiled but not always active, we'd want to  
avoid debug logging which has any cost associated with generating the  
strings themselves.

-Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070209/76ee711b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070209/76ee711b/attachment.sig>


More information about the devel mailing list