diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2015-09-22 20:57:58 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2015-09-22 20:57:58 (GMT) |
commit | 001513fa18824ccb86065e7df76c51f364294b28 (patch) | |
tree | 2e279d6451caeb3b5652d1541e549029ccde9b8f /generic/tclObj.c | |
parent | e0143819032635ae191c10a37c61837e359db146 (diff) | |
download | tcl-001513fa18824ccb86065e7df76c51f364294b28.zip tcl-001513fa18824ccb86065e7df76c51f364294b28.tar.gz tcl-001513fa18824ccb86065e7df76c51f364294b28.tar.bz2 |
micro-opt of hash lookups found by drh
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r-- | generic/tclObj.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c index f9216b3..15ea91f 100644 --- a/generic/tclObj.c +++ b/generic/tclObj.c @@ -3971,12 +3971,11 @@ TclCompareObjKeys( /* * 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. |