From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: malloc and alignment Date: Sat, 28 Jun 2003 22:30:31 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200306161438.h5GEcodM011551@rum.cs.yale.edu> <200306242252.h5OMqWMA001579@rum.cs.yale.edu> <200306272317.h5RNHcqQ026907@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1056854099 23476 80.91.224.249 (29 Jun 2003 02:34:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Jun 2003 02:34:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jun 29 04:34:57 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 19WS1p-00066S-00 for ; Sun, 29 Jun 2003 04:34:57 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19WS7U-0005SX-00 for ; Sun, 29 Jun 2003 04:40:55 +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 19WS1W-0004jw-BL for emacs-devel@quimby.gnus.org; Sat, 28 Jun 2003 22:34:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19WRzN-0003al-Ff for emacs-devel@gnu.org; Sat, 28 Jun 2003 22:32:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19WRyF-00036L-1J for emacs-devel@gnu.org; Sat, 28 Jun 2003 22:31:16 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19WRxX-0002Sr-Md for emacs-devel@gnu.org; Sat, 28 Jun 2003 22:30:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.20) id 19WRxX-0006HX-9T; Sat, 28 Jun 2003 22:30:31 -0400 Original-To: "Stefan Monnier" In-reply-to: <200306272317.h5RNHcqQ026907@rum.cs.yale.edu> (monnier+gnu/emacs@cs.yale.edu) 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:15317 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15317 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.