From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: gmp issues (long) Date: Tue, 25 Feb 2003 16:50:36 -0600 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87d6lgq8jn.fsf@raven.i.defaultvalue.org> References: <87d6lhcnyn.fsf@raven.i.defaultvalue.org> <87y9446pyc.fsf@zagadka.ping.de> <87wujoqado.fsf@raven.i.defaultvalue.org> <87smuc6lft.fsf@zagadka.ping.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046213622 20301 80.91.224.249 (25 Feb 2003 22:53:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2003 22:53:42 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18nnx9-0005GE-00 for ; Tue, 25 Feb 2003 23:53:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18nnvu-0003eO-01 for guile-devel@m.gmane.org; Tue, 25 Feb 2003 17:52:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18nnvY-0003cT-00 for guile-devel@gnu.org; Tue, 25 Feb 2003 17:51:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18nnv2-0003HD-00 for guile-devel@gnu.org; Tue, 25 Feb 2003 17:51:56 -0500 Original-Received: from dsl093-098-016.wdc1.dsl.speakeasy.net ([66.93.98.16] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18nnuH-0002rQ-00 for guile-devel@gnu.org; Tue, 25 Feb 2003 17:50:37 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 118848D3; Tue, 25 Feb 2003 16:50:37 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id DE8D6D1082; Tue, 25 Feb 2003 16:50:36 -0600 (CST) Original-To: Marius Vollmer In-Reply-To: <87smuc6lft.fsf@zagadka.ping.de> (Marius Vollmer's message of "25 Feb 2003 23:32:22 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:1978 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1978 Marius Vollmer writes: > The way I understand things, GMP does not allocate the mpz_t's itself, > right? Then you should be able to do things like > > SCM z = scm_double_cell (bignum_tag, 0, 0, 0); > mpz_init (SCM_CELL_ADDR_1 (z)); > where SCM_CELL_ADDR_1 or something similar needs to be added to gc.h. Hmm. Yep, that should work, and would be even faster. Any easy way we could rearrange things to that we allocate a double cell without initializing its fields at all (until the mpz_init), i.e. save the redundant init to 0, without causing trouble with the GC? Anyway, thanks for the suggestion. I think I can get this working pretty quickly so we can see how it fares. It'd be nice if it helps out noticably on the performance side too... -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel