|
From: | Paul Eggert |
Subject: | Re: [RFC] Some new vector procedures (vector-{memq, apply, to-string, ...}) |
Date: | Sat, 20 Apr 2019 15:54:50 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
sometimes I see the (memq elt <list of constants>) and think that using a vector would be faster/better, mainly since memq has to check for cycles.
You mean 'member', right? I don't think 'memq' checks for cycles.
No, (memq ELT LIST) checks for cycles in LIST, just as (member ELT LIST) does.We could probably speed up the cycle checking somewhat, but that's a different topic.
[Prev in Thread] | Current Thread | [Next in Thread] |