[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 08:57:45 -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))))
Agree. Thanx.
I tried my script (with minor adjustments) with bigloo and it's even
slower than chicken. the reason might be that bigloo's PREGEXP-SPLIT
is slower than chicken's STRING-SPLIT. The fact remains that chicken's
IO and bigloo's IO are both much slower than perlio.
The other thing I want to try is bigloo's REGULAR-GRAMMAR
construct. Do you think it will help? Is there something equivalent to
to REGULAR-GRAMMAR in chicken?
I have 3 other questions:
1. is there something like elisp's MAPC in scheme?
2. is there away to increase the buffer size of the input port (or the
underlying C stdio stream) ?
3. This is a blaspheming question. What's the best/most-efficient
scheme implementation for text processing? chicken? scsh? bigloo?
PLT?
Thanx
--
Linh Dang
- [Chicken-users] help please, Linh Dang, 2004/04/08
- Re: [Chicken-users] help please, felix, 2004/04/11
- Re: [Chicken-users] help please, Linh Dang, 2004/04/11
- Re: [Chicken-users] help please, Alex Shinn, 2004/04/12
- Re: [Chicken-users] help please,
Linh Dang <=
- 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, 2004/04/13
- 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