diff options
author | sebres <sebres@users.sourceforge.net> | 2018-05-29 17:02:57 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2018-05-29 17:02:57 (GMT) |
commit | 10673db0ceff7976e0b065bc6068944a7d9b9488 (patch) | |
tree | 3035fd0b8fb104ee859d2b674aaa9efdc956eed3 /generic/tclDate.h | |
parent | 14c5c590e0b9d0d78c83f81244d7cfcb1bace8b3 (diff) | |
download | tcl-10673db0ceff7976e0b065bc6068944a7d9b9488.zip tcl-10673db0ceff7976e0b065bc6068944a7d9b9488.tar.gz tcl-10673db0ceff7976e0b065bc6068944a7d9b9488.tar.bz2 |
further optimization: better cache for GMT-timezone + minimize (re)allocation of buffers
Diffstat (limited to 'generic/tclDate.h')
-rw-r--r-- | generic/tclDate.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclDate.h b/generic/tclDate.h index a1025fd..dc7c148 100644 --- a/generic/tclDate.h +++ b/generic/tclDate.h @@ -293,6 +293,7 @@ typedef struct ClockClientData { Tcl_Obj *gmtSetupTimeZoneUnnorm; Tcl_Obj *gmtSetupTimeZone; Tcl_Obj *gmtSetupTZData; + Tcl_Obj *gmtTZName; Tcl_Obj *lastSetupTimeZoneUnnorm; Tcl_Obj *lastSetupTimeZone; Tcl_Obj *lastSetupTZData; @@ -396,7 +397,8 @@ struct ClockScanToken { }; -#define MIN_FMT_RESULT_BLOCK_ALLOC 200 +#define MIN_FMT_RESULT_BLOCK_ALLOC 80 +#define MIN_FMT_RESULT_BLOCK_DELTA 30 typedef struct DateFormat { char *resMem; @@ -455,6 +457,7 @@ struct ClockFmtScnStorage { ClockFmtScnStorage *nextPtr; ClockFmtScnStorage *prevPtr; #endif + size_t fmtMinAlloc; #if 0 +Tcl_HashEntry hashEntry /* ClockFmtScnStorage is a derivate of Tcl_HashEntry, * stored by offset +sizeof(self) */ |