altos/lisp: bounds check in move_map plus binary search
authorKeith Packard <keithp@keithp.com>
Sat, 19 Nov 2016 05:16:11 +0000 (21:16 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 19 Nov 2016 05:16:11 +0000 (21:16 -0800)
commit289719fae3daa118c664e65fac0ab3b40ecc923e
tree73ec0a50ac5e6a1d0f5c30fb14a350511d3a6446
parent3fec65a3921b3783b250031b2824b4689b8635f9
altos/lisp: bounds check in move_map plus binary search

This makes move_map faster by skipping all addresses which aren't
changing.

Also changed the interface from address to offset to avoid computing
the offset multiple times.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lisp/ao_lisp.h
src/lisp/ao_lisp_mem.c