[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string vs list processing
From: |
Harvey J. Stein |
Subject: |
Re: string vs list processing |
Date: |
16 Apr 2001 11:15:08 -0400 |
Michael Livshin <address@hidden> writes:
> address@hidden (Harvey J. Stein) writes:
>
> > That (string-ref str 0) takes about the same time as (list-ref lst 0)
> > is good. The string ref is checking arguments, indexing into the
> > array & returning a char. The list-ref is checking arguments &
> > dereferencing car of lst. Actually, I'm a little surprised that
> > (string-ref ...) isn't slower.
>
> ??? string-ref is of constant complexity, whereas list-ref is of
> linear complexity.
I was talking about (string-ref ... 0) vs (list-ref ... 0).
--
Harvey Stein
Bloomberg LP
address@hidden
Re: string vs list processing, Masao Uebayashi, 2001/04/16
- Re: string vs list processing, Sascha Ziemann, 2001/04/16
- Re: string vs list processing, Masao Uebayashi, 2001/04/16
- Re: string vs list processing, Michael Livshin, 2001/04/16
- Re: string vs list processing, Bill Gribble, 2001/04/16
- Re: string vs list processing, Michael Livshin, 2001/04/16
- SRFI-13 again [was: Re: string vs list processing], Martin Grabmueller, 2001/04/17
- Re: SRFI-13 again [was: Re: string vs list processing], Dirk Herrmann, 2001/04/19
- Re: SRFI-13 again [was: Re: string vs list processing], Martin Grabmueller, 2001/04/19