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: Sun, 11 Apr 2004 09:58:02 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

On 11 Apr 2004, address@hidden wrote:
> Linh Dang wrote:
>> Hi I'm a newbie trying to learning scheme/chicken. I have a perl
>> script that I try to rewrite in scheme. the problem is the perl
>> version took 5 secs to run while the compiled (with -benchmark-mode
>> option) scheme version took 6 min to run. -profile doesn't help
>> because most of the work is done in a single function.  Anyone has
>> subjective opinion on the efficiency of
>> - (read-lines)
>> - (string-match)
>> - hash tables
>>
>
> Urgh. 5s vs. 6 mins is hard. Now, Chicken's I/O is definitly not one
> of the best (especially `read-line[s]' is pretty slow). How big is
> your input data?

massive. the TAGS file generated by exuberant-ctags would be to big to
search. that's why i put everything into an sqlite db.

>
> I'm sure we can tune this a good deal. For example the list-ref's in
> parse-ctags-line look a bit crude.  Heavy compiler-optimizations
> won't give anything here, since mnost of the work is done in the
> libraries.

Would you please give abit more explanations. I'm a scheme newbie
absolutely clueless wrt the chicken implementation.

>
> Note that Perl is heavily tuned for these kinds of jobs... ;-)
>

I know but it's a write-only language.

Thanx

--
Linh Dang




reply via email to

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