ActiveState Community

37 minutes to start a script - why?

Posted by crvoss on 2006-11-17 12:50

I posted this earlier but I think it was to the wrong forum so am repeating it here.

I have a tcl script of some 3500 lines that I wish to do some debugging but when I tried it took 37+ minutes to start up the script. Am I missing something? I'm using a dual Xeon 2 GHz machine with Windows XP Pro OS so it should be fairly fast. Without debugging the script starts up in about 21 seconds. Any ideas?

jeffg | Mon, 2006-11-20 11:54

The Tcl debugger has to instrument the entire application before running it, and at 3500 lines your application will instrument very slowly inside the debugger environment.