From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Comments on display.texi Date: Tue, 28 Sep 2004 14:58:41 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096380686 3335 80.91.229.6 (28 Sep 2004 14:11:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Sep 2004 14:11:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 28 16:11:19 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CCIhK-00079h-00 for ; Tue, 28 Sep 2004 16:11:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCInc-0000pF-LX for ged-emacs-devel@m.gmane.org; Tue, 28 Sep 2004 10:17:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCInC-0000iQ-7H for emacs-devel@gnu.org; Tue, 28 Sep 2004 10:17:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCInB-0000i4-6e for emacs-devel@gnu.org; Tue, 28 Sep 2004 10:17:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCInA-0000hr-TX for emacs-devel@gnu.org; Tue, 28 Sep 2004 10:17:21 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CCIgN-0005wj-Tl for emacs-devel@gnu.org; Tue, 28 Sep 2004 10:10:20 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by mx20.gnu.org with smtp (Exim 4.34) id 1CCHax-0006yR-FJ for emacs-devel@gnu.org; Tue, 28 Sep 2004 09:00:39 -0400 Original-Received: (qmail 84017 invoked from network); 28 Sep 2004 12:58:38 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 28 Sep 2004 12:58:38 -0000 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 27 Sep 2004 10:53:44 -0400") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27639 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27639 Richard Stallman writes: > But even faces have a limit of 21^2-1, so emacs is not without > arbitrary limits. > > So there must be some limit -- which ? 2^32-1 ? > > A limit of 2^21 would be ok, if it is painful to overcome. Actually, the 2^21 limit on faces is because we want to reduce memory usage for glyphs. Each glyph struct contains a face id as well as a number of 1-bit boolean fields. There are 11 such 1-bit fields, so to keep these together with the face id in 32 bits, the face id is 32-11 = 21 bits wide. Re. number of bitmaps: I still have problems envisioning anybody using more than a few bitmaps in any mode (ok, a mode which shows line numbers in the fringe would probably use a couple of 100s). Currently, the only package using bitmaps is gdb-ui -- and it uses just ONE. IMO, for 21.4 a limit of 4095 would be more than adequate. define-fringe-bitmap should signal an error if there are no free bitmap slots. There are several places in the code which uses a static allocation based on the max number of bitmaps. Of course they can be made dynamic, but that would be unnecessary, we could agree on a limit of 4095 for 21.4. WDYT? -- Kim F. Storm http://www.cua.dk