chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] A more detailed plea for help with FFI...


From: felix winkelmann
Subject: Re: [Chicken-users] A more detailed plea for help with FFI...
Date: Wed, 15 Dec 2004 21:49:47 +0100

On Wed, 15 Dec 2004 14:47:35 -0500, Ed Watkeys <address@hidden> wrote:
> 
> On Dec 15, 2004, at 12:44 PM, Ed Watkeys wrote:
> 
> > As soon as I get back from lunch, I'll write a couple programs that
> > create and destroy a million native chicken-string and foreign-string
> > instances and compare the run times.
> 
> Running the code below with the set-finalizer! call in 1) place and 2)
> commented out resulted in a runtime delta of about eight seconds on my
> 1.33 GHz PB G4 12" running OS X 10.3.6. That means that the overhead of
> handling a finalizer call is about 80 microseconds, or about 0.00008
> seconds. That's about 110,000 processor cycles. Wow.
> 

Yes, I feared that. The way finalizers are currently handled is rather
inefficient: lots of linear searches, which happen during every major
GC. I will try to improve this.


cheers,
felix




reply via email to

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