diff options
author | sebres <sebres@users.sourceforge.net> | 2019-01-14 08:55:49 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2019-01-14 08:55:49 (GMT) |
commit | 0e3cc87362584b9a0cc3bb6890dd588e50fd979f (patch) | |
tree | ba32d0a68de44dc331973f56296ab53928c48ae0 | |
parent | 631a3b78cb6c86df02039a5cd711ac322b932477 (diff) | |
download | tcl-0e3cc87362584b9a0cc3bb6890dd588e50fd979f.zip tcl-0e3cc87362584b9a0cc3bb6890dd588e50fd979f.tar.gz tcl-0e3cc87362584b9a0cc3bb6890dd588e50fd979f.tar.bz2 |
minor optimization: check length instead of content - don't touch other memory (so potentially fewer cpu-cache washout's)
-rw-r--r-- | generic/tclExecute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 51dd382..fafd511 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -5238,7 +5238,7 @@ TEBCresume( /* Every range of an empty list is an empty list */ if (objc == 0) { /* avoid return of not canonical list (e. g. spaces in string repr.) */ - if (!valuePtr->bytes || !valuePtr->bytes[0]) { + if (!valuePtr->bytes || !valuePtr->length) { TRACE_APPEND(("\n")); NEXT_INST_F(9, 0, 0); } |