summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-11-22 21:02:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-11-22 21:02:29 (GMT)
commit5eeef96ee9e6fbb573a438338662fea9ca7c0efd (patch)
tree251cb02566078f3add782ab598462b1054586426 /generic/tclInt.h
parent6b4bc6bb8d46722088d73bd4a93f51e7fc65dbf4 (diff)
downloadtcl-5eeef96ee9e6fbb573a438338662fea9ca7c0efd.zip
tcl-5eeef96ee9e6fbb573a438338662fea9ca7c0efd.tar.gz
tcl-5eeef96ee9e6fbb573a438338662fea9ca7c0efd.tar.bz2
Cherrypick [812a81812ebf89d2416059d45fabd27e45603f5e|812a81812e]: Turn off NRE asserts by default. About a 5% speedup on [clock format].
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index f9d2edf..082fab4 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -4791,7 +4791,9 @@ void Tcl_Panic(const char *, ...) __attribute__((analyzer_noreturn));
*/
#define NRE_USE_SMALL_ALLOC 1 /* Only turn off for debugging purposes. */
-#define NRE_ENABLE_ASSERTS 1
+#ifndef NRE_ENABLE_ASSERTS
+#define NRE_ENABLE_ASSERTS 0
+#endif
/*
* This is the main data struct for representing NR commands. It is designed