diff options
| author | Keith Packard <keithp@keithp.com> | 2016-11-16 13:19:20 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-02-20 11:16:51 -0800 | 
| commit | daa06c8dedc6dc1cf21936ee2769d9d25f0567bd (patch) | |
| tree | c8742f0c59d886d4540a6de17b0ab471c77f136b /src/test/hanoi.lisp | |
| parent | c8f9db184cc929ebde845730a6d4b7864e423a84 (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.lisp | 11 | 
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)) +      ) +    ) +  )  | 
