[plt-scheme] Development and Debugging

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Thu Dec 1 17:26:14 EST 2005

I've written a log module for mzscheme (log4scm),
which has several "log levels". Log levels consist of
'debug, 'info, 'warn, 'error, 'fatal. I can set the level
of logging runtime. If I set it, e.g. to 'warn,  the log
functions for 'debug and 'info will be replaced by
the function I mentioned.

So, the next question is: How will a call to a function
that does nothing impact performance.

Best whishes,

Hans


djneu at att.net schreef:

>Sorry, I'm not following you.
>
> -------------- Original message ----------------------
>From: Hans Oesterholt-Dijkema <hdnews at gawab.com>
>  
>
>>How much would the overhead be of a call to
>>
>>    (define (log-none . msg) 'not-logged)
>>
>>?
>>
>>David J. Neu schreef:
>>
>>    
>>
>>>Hi all,
>>>
>>>We're developing a relatively large web application which is
>>>implemented in mzscheme and cgi-bin scripts with all of our code being
>>>in modules.
>>>
>>>The code in our production system is compiled since it's too slow
>>>otherwise.
>>>
>>>We're finding the debugging cycle to be very challenging because we
>>>can't run compiled code in the production system with debug on because
>>>it's really slow, therefore we don't get detailed error messages,
>>>i.e. error trace.
>>>
>>>We're also finding the development cycle to be inefficient because we
>>>either:
>>>
>>>1. Compile the code (w/ debug on) after each code change which is
>>>really time consuming.
>>>
>>>OR
>>>
>>>2. Don't compile the code after each code change, in which case the
>>>system runs really slowly, making testing painful.
>>>
>>>Thanks in advance for any suggestions!
>>>
>>>Cheers,
>>>David
>>>_________________________________________________
>>> For list-related administrative tasks:
>>> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>> 
>>>
>>>      
>>>
>>_________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>    
>>
>
>
>  
>



Posted on the users mailing list.