Re: Snapshot 2015-06

Carl Shapiro <[email protected]> Wed, 10 Jun 2015 23:40:58 -0700
Newsgroups gmane.lisp.cmucl.devel
Message-ID <CANVK_Qi08kJbMoACWbkXvRyR49qLNoESF=gfVAuWgr2py1zprw@mail.gmail.com>
On Wed, Jun 10, 2015 at 11:09 PM, Faré <[email protected]> wrote:

> Lazy getenv, putenv — and if you want to get all of them, or to pass
> all of them, use an equal hash-table with strings as key, not an alist
> with keywords as keys.
>

Thanks for the clarification.

Is your issue with the search time?  The libc getenv and putenv uses a
linear search with a linear time compare of strings.  It is unlikely to be
faster than an a-list search.

I agree that converting strings to keywords is problematic when dealing
with unconventionally cased environment variable names.  The original
strings are kept around if you need them.
_______________________________________________
cmucl-imp mailing list
[email protected]
http://lists.zs64.net/mailman/listinfo/cmucl-imp