aboutsummaryrefslogtreecommitdiff
path: root/jim-array.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-06-06 19:31:35 +1000
committerSteve Bennett <steveb@workware.net.au>2020-06-11 08:09:31 +1000
commit64ec09d155efbb03b878f0891ac3a8694e0b01ea (patch)
treead6f9a3efc88048b8957bc06aa9bc89e264a2b84 /jim-array.c
parentb4b213f6449f44d012e12eb4f1b29c88bdbd5567 (diff)
downloadjimtcl-64ec09d155efbb03b878f0891ac3a8694e0b01ea.zip
jimtcl-64ec09d155efbb03b878f0891ac3a8694e0b01ea.tar.gz
jimtcl-64ec09d155efbb03b878f0891ac3a8694e0b01ea.tar.bz2
core: improve the performance of lists
Under some circumstances, such as lrepeat and lreverse we know the length of the final list, so allocate the final size immediately rather than growing the table in multiple steps. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-array.c')
0 files changed, 0 insertions, 0 deletions