From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.user Subject: Re: New g-wrap supported in guile-gtk--rotty-0.1! Date: Sat, 06 Dec 2003 17:18:27 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <87llppor70.fsf@alice.rotty.yi.org> References: <87smkc5b22.fsf@alice.rotty.yi.org> <874qwhsa2u.fsf@zip.com.au> <87ad69j6ps.fsf@alice.rotty.yi.org> <87oeuotdqo.fsf@alice.rotty.yi.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070727672 4706 80.91.224.253 (6 Dec 2003 16:21:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2003 16:21:12 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Dec 06 17:21:08 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ASfB6-0001sw-00 for ; Sat, 06 Dec 2003 17:21:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASg7J-0006XP-I2 for guile-user@m.gmane.org; Sat, 06 Dec 2003 12:21:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ASg6p-0006Wu-Tg for guile-user@gnu.org; Sat, 06 Dec 2003 12:20:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ASg6J-0006Rk-Mm for guile-user@gnu.org; Sat, 06 Dec 2003 12:20:46 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.24) id 1ASg6J-0006RS-7R for guile-user@gnu.org; Sat, 06 Dec 2003 12:20:15 -0500 Original-Received: (qmail 574 invoked by uid 65534); 6 Dec 2003 16:18:48 -0000 Original-Received: from chello213047125140.14.univie.teleweb.at (EHLO garibaldi) (213.47.125.140) by mail.gmx.net (mp010) with SMTP; 06 Dec 2003 17:18:48 +0100 X-Authenticated: #3102804 Original-Received: from ivanova.rhinosaur.lan ([192.168.1.9] helo=ivanova) by garibaldi with esmtp (Exim 4.24) id 1ASf8W-0000Zp-Cw; Sat, 06 Dec 2003 17:18:28 +0100 Original-Received: from andy by ivanova with local (Exim 4.24) id 1ASf8V-000590-GC; Sat, 06 Dec 2003 17:18:27 +0100 Original-To: djurfeldt@nada.kth.se, guile-user@gnu.org, guile-gtk-general@gnu.org In-Reply-To: <87oeuotdqo.fsf@alice.rotty.yi.org> (Andreas Rottmann's message of "Thu, 04 Dec 2003 23:33:19 +0100") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-Spam-Score: -4.9 (----) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2448 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2448 Andreas Rottmann writes: > Unfortunatly, I guess this will not help much. First, most generics in > the binding have only one method. Second, I'm not exactly sure how to > get complexity down: compute-new-methods currently checks each of > current methods against a duplicate specialization. However, it may be > save to assume that all methods passed to internal-add-methods! have > different specializers, so I could at least add them if there are not > any methods yet. > >> An improvement on the implementation level would be to do part (or >> all) of the work in C. This, however, should be done with preserved >> respect for the MOP. Anyone who wants to do this should talk to me >> first. >> > Hmm, this would probably mean pulling internal-add-methods! and (part > of) the functions it calls down to the C level. What exactly do I > have to consider wrt MOP here? > I now have a (seemingly) working version of internal-add-methods! in C. Strange enough, it does not yield in a performance increase over the scheme code. Maybe someone want's to review my code and point me at bottlenecks or other glitches? I got a significant speedup with a unrelated measure, however: I blocked GC during the registering of a wrapset (where all the method and GF creation takes place). This bought me a 20% increase of loading speed... Cheers, Andy -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 This reality is really just a fucked-up dream -- Papa Roach _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user