chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] sloooow (read)


From: Sven . Hartrumpf
Subject: Re: [Chicken-users] sloooow (read)
Date: Tue, 25 May 2004 08:12:03 +0200 (CEST)

On 24 May 2004, Alain MELLAN wrote:
[...]
> Bigloo:   1.290u 0.100s 0:01.40 99.2%     0+0k 0+0io 648pf+0w
> Chicken: 12.980u 0.340s 0:13.33 99.9%     0+0k 0+0io 436pf+0w
> 
> that's fairly bad :-(
[...]
> Below is my test program (basically makes a *big* list, writes it to
> disk and reads again):

Your code reads a different file!

Just to be sure the first line doesn't make the difference:
When you have generated asdf.txt,
remove the first line from your test program and switch
the order of the rest (i.e. read first, then write) and
measure again.

Which compiler options are you using for bigloo, which for chicken?

Greetings
Sven

> (define a (vector->list (make-vector 1000000 '())))
> 
> (define port (open-output-file "asdf.asdf"))
> (write a port)
> (close-output-port port)
> 
> (set! port (open-input-file "asdf.txt"))
> (define b (read port))
> (close-input-port port)

Attachment: pgpW_oghuFQff.pgp
Description: PGP signature


reply via email to

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