[Top][All Lists]
[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
- Set-finalizer! (was Re: [Chicken-users] A more detailed plea for help with FFI...), (continued)
- Set-finalizer! (was Re: [Chicken-users] A more detailed plea for help with FFI...), Ed Watkeys, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., felix winkelmann, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., Joel Reymont, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., Ed Watkeys, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., felix winkelmann, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., Ed Watkeys, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., felix winkelmann, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., Ed Watkeys, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., Ed Watkeys, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI...,
felix winkelmann <=
- Re: [Chicken-users] A more detailed plea for help with FFI..., Tony Garnock-Jones, 2004/12/16
- Re: [Chicken-users] A more detailed plea for help with FFI..., Ed Watkeys, 2004/12/16
- Re: [Chicken-users] A more detailed plea for help with FFI..., Tony Garnock-Jones, 2004/12/16
- Re: [Chicken-users] A more detailed plea for help with FFI..., John Lenz, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., Ed Watkeys, 2004/12/15
- Re: [Chicken-users] A more detailed plea for help with FFI..., John Lenz, 2004/12/15
- Re: [Swig-dev] Re: [Chicken-users] A more detailed plea for help with FFI..., Matthias Koeppe, 2004/12/15
- Re: [Swig-dev] Re: [Chicken-users] A more detailed plea for help with FFI..., William S Fulton, 2004/12/16
- Re: [Chicken-users] A more detailed plea for help with FFI..., felix winkelmann, 2004/12/15
[Chicken-users] A more detailed plea for help with FFI..., Ed Watkeys, 2004/12/15