|
From: | Tony Garnock-Jones |
Subject: | Re: [Chicken-users] A more detailed plea for help with FFI... |
Date: | Thu, 16 Dec 2004 11:51:24 +0000 |
User-agent: | Mozilla Thunderbird 0.8 (Macintosh/20040913) |
Ed Watkeys wrote:
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.
Alternatively, it means that malloc() and free() are really slow. (Which hypothesis is supported by the fact that malloc() and free() are actually really slow :-) )
Tony
[Prev in Thread] | Current Thread | [Next in Thread] |