From 719ec9977020c58378f1b28a676c12a897149ea2 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Mon, 11 Jun 2007 15:12:08 +0000 Subject: * generic/tclExecute.c: comments added to explain iPtr->numLevels management. --- ChangeLog | 5 +++++ generic/tclExecute.c | 7 +++++-- 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 + + * generic/tclExecute.c: comments added to explain iPtr->numLevels + management. + 2007-06-10 Miguel Sofer * 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++; -- cgit v0.12