From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: malloc and alignment Date: Fri, 04 Jul 2003 16:42:32 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200307042042.h64KgWsF024821@rum.cs.yale.edu> References: <200306161438.h5GEcodM011551@rum.cs.yale.edu> <200306242252.h5OMqWMA001579@rum.cs.yale.edu> <200306272317.h5RNHcqQ026907@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057351752 24785 80.91.224.249 (4 Jul 2003 20:49:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2003 20:49:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 04 22:49:11 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19YXUV-0006Rd-00 for ; Fri, 04 Jul 2003 22:49:11 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19YXd4-00046q-00 for ; Fri, 04 Jul 2003 22:58:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19YXT7-0007Ra-Ky for emacs-devel@quimby.gnus.org; Fri, 04 Jul 2003 16:47:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19YXSg-0007E3-L8 for emacs-devel@gnu.org; Fri, 04 Jul 2003 16:47:18 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19YXOh-0005BK-3b for emacs-devel@gnu.org; Fri, 04 Jul 2003 16:43:12 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19YXO5-0004hn-5i; Fri, 04 Jul 2003 16:42:33 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h64KgWHl024823; Fri, 4 Jul 2003 16:42:32 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h64KgWsF024821; Fri, 4 Jul 2003 16:42:32 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Original-cc: Stefan Monnier X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15379 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15379 > In all three cases, malloc (or memalign) itself does not use up much > extra memory (in the case of memalign, it uses up a lot of memory > if we memalign (16384) which is why I only memalign (16380). > > The actual number of bytes per float used up in the three cases is: > - 12.14 > - 8.74 > - 8.26 > > With those ratios, I'd say it is efficient enough, for cons cells too. > Please install your changes. I've installed the change for floats (without using memalign). I'll install the rest in small installments. Stefan