scm_mem[qv] optimization
authorAndy Wingo <wingo@pobox.com>
Thu, 5 May 2011 13:13:08 +0000 (15:13 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 5 May 2011 21:07:37 +0000 (23:07 +0200)
commit3b7f4ba37b41a4db80fc60ef7324d5c1e27944c1
tree1ca08ee5c0271e00baa2eb489ab0aabc7942167f
parent3009b93e9b7d14edebedde6dc28539917b556344
scm_mem[qv] optimization

* libguile/list.c (scm_memq, scm_memv): Inline the tortoise/hare check
  that scm_ilength does, via SCM_VALIDATE_LIST, into the memq/memv
  bodies.  Avoids traversing these lists twice.
libguile/list.c