[Top][All Lists]

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

Re: [Chicken-users] entry/exit to Scheme really slow on Solaris

From: felix
Subject: Re: [Chicken-users] entry/exit to Scheme really slow on Solaris
Date: Sun, 17 Aug 2003 23:00:57 +0200
User-agent: Opera7.11/Linux M2 build 406

On 11 Aug 2003 15:23:41 +1200, Bruce Hoult <address@hidden> wrote:

Well, I solved it.

Each time Chicken does a GC (major or minor), it calls getrusage before
and after so it can calculate the amount of CPU time used in the GC. Unfortunately, this takes around 60 uS per call on this SPARC SunFire
v120, which turns out to be about 90% of the total runtime of my

With the following patch the runtime of my test program drops from 94
seconds to 9 seconds!

This turns out to be a significant improvement not only for very short
calls into Scheme, but also for normal programs.  For example, it
dramatically lowers all the times for nsample, especially with small
nursery sizes:

This is indeed the case. Many thanks for pointing this out, Bruce!

I've taken the freedom to handle this somewhat differently (compared to
your patch): minor GC time is now not included in timing results (as
shown by the `time') macro, only *major* GC time.


reply via email to

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