From 0e3cc87362584b9a0cc3bb6890dd588e50fd979f Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 14 Jan 2019 08:55:49 +0000 Subject: minor optimization: check length instead of content - don't touch other memory (so potentially fewer cpu-cache washout's) --- generic/tclExecute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v0.12