summaryrefslogtreecommitdiff
path: root/src/test/hanoi.lisp
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-16 13:19:20 -0800
committerKeith Packard <keithp@keithp.com>2016-11-17 22:18:39 -0800
commit81f572512cad9cefadd4e4ede7678e2566117d2a (patch)
tree73a2d735924eedea6101b9209cd1abe7f19445b5 /src/test/hanoi.lisp
parent169454f5613dff38a6159166467b43a163c81e00 (diff)
altos/lisp: Optimize chunk searching in collect
Note range of existing chunks to exclude objects outside. Only look at chunks which have been set to reduce loop cost. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test/hanoi.lisp')
-rw-r--r--src/test/hanoi.lisp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/test/hanoi.lisp b/src/test/hanoi.lisp
index 387e696a..7a25656c 100644
--- a/src/test/hanoi.lisp
+++ b/src/test/hanoi.lisp
@@ -126,7 +126,7 @@
(setq stacks (replace stacks from from-stack))
(setq stacks (replace stacks to to-stack))
(display)
- (delay 100)
+; (delay 100)
)
)
@@ -158,3 +158,12 @@
(clear)
(_hanoi len 0 1 2)
)
+
+(defun hanois(n)
+ (while (> n 0)
+ (progn
+ (hanoi)
+ (setq l (1- l))
+ )
+ )
+ )