From 2f062843d94c8d6d40d15c504bd665c470a3550c Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Tue, 18 Mar 2008 15:52:21 +0100 Subject: JOURNAL update. darcs-hash:9361abc569ed1b69691bdae03c219be573c97ac1 --- JOURNAL | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/JOURNAL b/JOURNAL index 4d36d45..58c709b 100644 --- a/JOURNAL +++ b/JOURNAL @@ -1,5 +1,32 @@ -*- mode: muse -*- +; C-c i t insert-time-stamp + + +* 2008-03-18, 15:31:30 CET + +** Profiling INVOKE + +I always profile INVOKE like this: + + +(let ((x (invoke (find-objc-class 'ns-method-signature) + :method-signature-for-selector 'new))) + (sb-sprof:with-profiling (:max-samples 500 + :loop t + :report :flat) + (dotimes (i 100) (invoke x :get-argument-type-at-index 0)))) + + +Of course, this is a ridiculous microbenchmark that doesn't yield much +information about actual Objective-C usage, but it's certainly useful +for finding the bottlenecks of INVOKE calls. + +Whether the performance of repeated invocation of the very same method +on the very same object is all that interesting is, of course, an +entirely different matter. + + * 2008-03-07, 02:17:50 CET ** Memory Management -- cgit v1.2.3