Implement environment cache.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 19 Oct 2016 22:11:48 +0000 (00:11 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 19 Oct 2016 22:11:48 +0000 (00:11 +0200)
commit7885096526f43bc6d3b9fb25c1bc5c62a3caac51
tree67bb95cb5e89d639549525072fe2557a20b4f1dd
parentd1b8f0ff0c5ed172e7f52093d6cf8ee4fac6b700
Implement environment cache.

* mes.c (cache_save, cache_lookup, cache_invalidate,
  cache_invalidate_range): Implement cache for environment.
  (assq_ref_cache): New function, perform cached lookups.
  (builtin_eval,lookup_macro): Use it.
  (set_cdr_x): Invalidate cache.
  (set_x): Likewise.
  (apply_env): Likewise.
mes.c