summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2015-09-22 20:57:58 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2015-09-22 20:57:58 (GMT)
commit7133978296f59ce009268aa903195a593e390c7c (patch)
tree2e279d6451caeb3b5652d1541e549029ccde9b8f /generic/tclVar.c
parente068ea41b4602d0cc91f5af46b3603ca50ab1604 (diff)
downloadtcl-7133978296f59ce009268aa903195a593e390c7c.zip
tcl-7133978296f59ce009268aa903195a593e390c7c.tar.gz
tcl-7133978296f59ce009268aa903195a593e390c7c.tar.bz2
micro-opt of hash lookups found by drh
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index b37283b..f93de3b 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -6364,12 +6364,11 @@ CompareVarKeys(
/*
* If the object pointers are the same then they match.
- */
-
- if (objPtr1 == objPtr2) {
- return 1;
- }
-
+ * OPT: this comparison was moved to the caller
+
+ if (objPtr1 == objPtr2) return 1;
+ */
+
/*
* Don't use Tcl_GetStringFromObj as it would prevent l1 and l2 being in a
* register.