[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] help please
From: |
Linh Dang |
Subject: |
Re: [Chicken-users] help please |
Date: |
Tue, 13 Apr 2004 13:41:49 -0400 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
On 12 Apr 2004, address@hidden wrote:
> At Mon, 12 Apr 2004 12:22:49 -0400, Linh Dang wrote:
>>
>> (define (read-and-print)
>> (unless (eqv? (map parse-ctags-line (read-lines)) '())
>> (read-and-print)))
>
> Here you're building a large list you don't use. Did you try
>
> (define (read-and-print)
> (let ((line (read-line)))
> (unless (eof-object? line)
> (parse-ctags-line line)
> (read-and-print))))
- This is slower than using read-lines.
- Using a combination of (read-string) and (string-split) is MUCH
slower than the current code.
--
Linh Dang
- Re: [Chicken-users] help please, (continued)
- Re: [Chicken-users] help please, Alex Shinn, 2004/04/12
- Re: [Chicken-users] help please, Linh Dang, 2004/04/13
- Re: [Chicken-users] help please, Alex Shinn, 2004/04/13
- Re: [Chicken-users] help please, Felix Winkelmann, 2004/04/14
- Re: [Chicken-users] help please, Linh Dang, 2004/04/14
- [Chicken-users] chicken vs perl (was Re: help please), Linh Dang, 2004/04/21
- Re: [Chicken-users] help please,
Linh Dang <=
- Re: [Chicken-users] help please, felix, 2004/04/13
- Re: [Chicken-users] help please, Bruce Hoult, 2004/04/13
- Re: [Chicken-users] help please, Linh Dang, 2004/04/13
- Re: [Chicken-users] help please, felix, 2004/04/12