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: 04 Dec 2003 18:21:34 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <0oswu9csdlt.fsf@pc061.ben.tuwien.ac.at> References: <87smkc5b22.fsf@alice.rotty.yi.org> <874qwhsa2u.fsf@zip.com.au> <87ad69j6ps.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 1070559583 18382 80.91.224.253 (4 Dec 2003 17:39:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2003 17:39:43 +0000 (UTC) Cc: guile-user@gnu.org, guile-gtk-general@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Dec 04 18:39:41 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 1ARxS0-0001AQ-00 for ; Thu, 04 Dec 2003 18:39:40 +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 1ARyNm-00081n-LS for guile-user@m.gmane.org; Thu, 04 Dec 2003 13:39:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ARy8n-0008FV-RO for guile-user@gnu.org; Thu, 04 Dec 2003 13:23:53 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ARy89-0007sp-Cj for guile-user@gnu.org; Thu, 04 Dec 2003 13:23:44 -0500 Original-Received: from [128.131.2.109] (helo=mr.tuwien.ac.at) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARy88-0007p5-8K; Thu, 04 Dec 2003 13:23:12 -0500 Original-Received: from pc061.ben.tuwien.ac.at (pc061.ben.tuwien.ac.at [193.170.75.111]) by mr.tuwien.ac.at (8.12.10/8.12.8) with ESMTP id hB4HLZL1023552; Thu, 4 Dec 2003 18:21:35 +0100 (MET) Original-Received: (from e9926584@localhost) by pc061.ben.tuwien.ac.at (8.12.5/8.12.5) id hB4HLYav000720; Thu, 4 Dec 2003 18:21:34 +0100 X-Authentication-Warning: pc061.ben.tuwien.ac.at: e9926584 set sender to e9926584@student.tuwien.ac.at using -f Original-To: djurfeldt@nada.kth.se In-Reply-To: Original-Lines: 45 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) 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:2443 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2443 Mikael Djurfeldt writes: [ First of all: Thanks for the quick answer ] > Andreas Rottmann writes: > > > Yes, I also think that we *have* to get the "time-to-initial-window" > > at least under 1 second for a hello world program... > > GOOPS is, as yet, only optimized for fast execution. Creation of > objects and *especially* method creation involves a lot of work, most > of which is done by interpreted Scheme code. > > This is not an architectural problem, though, and it is certainly > possible to speed things up. > > An improvement of method addition on the algorithm level that could > help this particular case would be to allow for adding multiple > methods at once. Presently, every call to scm_add_method involves > re-computing the methods list of the GF which means that adding N > methods to a GF is O(N^2). > Ok, so we'd have a scm_add_methods() with this approach, I guess. I'll have a look into this. I definitly want to have fast bindings when Guile 1.8 comes out. > 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. > Best would probably to go for algorithmic performance increase at the SCM level first and if that doesn't suffice, factor the critical parts out into C. > (Unfortunately, I can't do any work on GOOPS right now. Hopefully > I'll be able to go over a few issues with GOOPS starting next summer.) > I'll do a bit of code study in the next days/week, and come back to you when I have questions, if that's OK. Once I've wrapped my head around the code, I'll try to implement scm_add_methods() and see how much that gains us. -- Andreas Rottmann _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user