chicken-users
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]