summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-06-11 15:12:08 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-06-11 15:12:08 (GMT)
commit719ec9977020c58378f1b28a676c12a897149ea2 (patch)
treef650a589eaa8905eda73fd1ed7aae4350380a0d9 /generic/tclExecute.c
parent57ba79b9aa406ba55b5987ac6bf3556cce00d9df (diff)
downloadtcl-719ec9977020c58378f1b28a676c12a897149ea2.zip
tcl-719ec9977020c58378f1b28a676c12a897149ea2.tar.gz
tcl-719ec9977020c58378f1b28a676c12a897149ea2.tar.bz2
* generic/tclExecute.c: comments added to explain iPtr->numLevels
management.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 12f85bc..77620a5 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.290 2007/06/10 23:15:06 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.291 2007/06/11 15:12:08 msofer Exp $
*/
#include "tclInt.h"
@@ -1097,7 +1097,10 @@ TclCompEvalObj(
Namespace *namespacePtr;
/*
- * Check that the interpreter is ready to execute scripts
+ * Check that the interpreter is ready to execute scripts. Note that we
+ * manage the interp's runlevel here: it is a small white lie (maybe), but
+ * saves a ++/-- pair at each invocation. Amazingly enough, the impact on
+ * performance is noticeable.
*/
iPtr->numLevels++;