|
2005-04-05
| ||
| 21:12 | • Closed ticket [441372ffff]: Adding constants in ExecEnv plus 7 other changes artifact: 18938e5ffe user: msofer | |
|
2002-06-20
| ||
| 05:42 | • Ticket [441372ffff]: 4 changes artifact: cfb709e1c3 user: hobbs | |
| 05:42 | • Ticket [441372ffff]: 1 change artifact: a1e1270fd2 user: hobbs | |
|
2001-09-14
| ||
| 22:56 | • Ticket [441372ffff]: 4 changes artifact: 568e58c85a user: msofer | |
|
2001-07-17
| ||
| 18:40 | • Ticket [441372ffff]: 4 changes artifact: fb50438bfc user: msofer | |
| 01:50 | • Ticket [441372ffff]: 5 changes artifact: 82bdd902a3 user: hobbs | |
|
2001-07-15
| ||
| 07:51 | • Ticket [441372ffff]: 4 changes artifact: e3386fd5d1 user: msofer | |
| 07:51 | • Add attachment patch.txt to ticket [441372ffff] artifact: 9044892ba3 user: msofer | |
| 07:42 | • Ticket [441372ffff] Adding constants in ExecEnv status still Open with 4 oth... artifact: c1e603fa31 user: msofer | |
| 07:42 | • Add attachment bench.const3 to ticket [441372ffff] artifact: 86c68ab7bd user: msofer | |
| 00:42 | • New ticket [441372ffff] Adding constants in ExecEnv. artifact: fff6848e29 user: msofer | |
Adding constants in ExecEnv
Closed / Out of Date441372ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 22 years ago
Descriptionplain2001-07-15 00:42:01
The patch defines 4 "constant" Tcl_Obj in the execution environment: "zero", "one", "minus one" and "empty object". The purpose is to avoid some unnecessary object creation/destruction, especially of boolean values. There is a zero-to-minimal positive effect in tclbench results; it may be larger for threaded builds.
msoferplain2001-07-15 07:42:02
File Added - 8425: bench.const3
msoferplain2001-07-15 07:51:16
File Added - 8426: patch.txt
hobbsplain2001-07-17 01:50:49
Logged In: YES user_id=72656 My guess is this has minor benchmark effects because it only minorly affect small obj allocations. However, it may be a more notable effect on mem usage (any good ways to check that in a practical manner?). Anyway, this should be run through purify or efence before getting commited.
msoferplain2001-07-17 18:40:17
Logged In: YES
user_id=148712
I do not expect a large memory effect either: most of the
things that are changed involve relatively short lived
Tcl_Obj. Boolean values for instance are typically consumed
right after creation.
One exception could be when setting large numbers of
variables to {} via the idiom
foreach varName $someList {.} break
which sets the first variable to "." and the rest per
default to {}. This idiom is used in both implementations of
set operations in the wiki (soon in tcllib and tclbench?),
(see http://mini.net/tcl/271.html).
msoferplain2001-09-14 22:56:14
Logged In: YES
user_id=148712
Mhh ... the idiom is actually
foreach $varNameList {{}} break
which sets the variables whose names are in $varNameList to
the empty object {}
hobbs Ticket [441372ffff]: 1 change
[History diff]2002-06-20 05:42:50
hobbsplain2002-06-20 05:42:51
Logged In: YES user_id=72656 pushing this back to miguel due to the number of changes he has made to TEBC recently.
msoferplain2005-04-05 21:12:27
Logged In: YES user_id=148712 Parts of this have been incorporated into 8.5a3
Log in (anonymous is fine) to add a comment.
Attachments:
- patch.txt [download] added by msofer on 2001-07-15 07:51:16. [details]
- bench.const3 [download] added by msofer on 2001-07-15 07:42:02. [details]