aboutsummaryrefslogtreecommitdiff
path: root/tests/coverage.test
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-06-05 20:41:41 +1000
committerSteve Bennett <steveb@workware.net.au>2020-06-05 21:48:01 +1000
commitcdfa4637afe510fad7140d03b154bf30b16f8f9c (patch)
treee0d3c57e587d74ef9703b529809ddbfae5729f86 /tests/coverage.test
parent5d44077dc5e785c490707f57a420fb92ff99015f (diff)
downloadjimtcl-cdfa4637afe510fad7140d03b154bf30b16f8f9c.zip
jimtcl-cdfa4637afe510fad7140d03b154bf30b16f8f9c.tar.gz
jimtcl-cdfa4637afe510fad7140d03b154bf30b16f8f9c.tar.bz2
core: improve performance through negative command caching
Instead of incrementing the proc epoch on every command removal and some command creation, cache previous deleted commands (empty structure only). Periodically increment the proc epoch and invalide all cached commands. This is especially a win when creating short lived commands. e.g. proc a {} { local proc b {} { # do something } # now b is removed } Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/coverage.test')
0 files changed, 0 insertions, 0 deletions