core: improve the performance of lists
commit64ec09d155efbb03b878f0891ac3a8694e0b01ea
authorSteve Bennett <steveb@workware.net.au>
Sat, 6 Jun 2020 09:31:35 +0000 (6 19:31 +1000)
committerSteve Bennett <steveb@workware.net.au>
Wed, 10 Jun 2020 22:09:31 +0000 (11 08:09 +1000)
treead6f9a3efc88048b8957bc06aa9bc89e264a2b84
parentb4b213f6449f44d012e12eb4f1b29c88bdbd5567
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>
jim.c