summaryrefslogtreecommitdiffstats
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
parent57ba79b9aa406ba55b5987ac6bf3556cce00d9df (diff)
downloadtcl-719ec9977020c58378f1b28a676c12a897149ea2.zip
tcl-719ec9977020c58378f1b28a676c12a897149ea2.tar.gz
tcl-719ec9977020c58378f1b28a676c12a897149ea2.tar.bz2
* generic/tclExecute.c: comments added to explain iPtr->numLevels
management.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclExecute.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3f4c78a..2f7e705 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-11 Miguel Sofer <msofer@users.sf.net>
+
+ * generic/tclExecute.c: comments added to explain iPtr->numLevels
+ management.
+
2007-06-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c: Further TEOvI split, creating a new
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++;