From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Defcustoms, how do users find them? Date: Tue, 17 Nov 2009 22:26:40 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258514821 26241 80.91.229.12 (18 Nov 2009 03:27:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2009 03:27:01 +0000 (UTC) Cc: Emacs-Devel devel To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 18 04:26:54 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NAbC0-0000bV-4G for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 04:26:52 +0100 Original-Received: from localhost ([127.0.0.1]:37565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAbBz-00040P-HB for ged-emacs-devel@m.gmane.org; Tue, 17 Nov 2009 22:26:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAbBu-0003zy-7g for emacs-devel@gnu.org; Tue, 17 Nov 2009 22:26:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAbBp-0003z9-P3 for emacs-devel@gnu.org; Tue, 17 Nov 2009 22:26:45 -0500 Original-Received: from [199.232.76.173] (port=46899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAbBp-0003z6-Jj for emacs-devel@gnu.org; Tue, 17 Nov 2009 22:26:41 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:35832 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAbBp-0004Ur-DM for emacs-devel@gnu.org; Tue, 17 Nov 2009 22:26:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAFL4AkvO+II8/2dsb2JhbACBTtRWhDsEiVE X-IronPort-AV: E=Sophos;i="4.44,762,1249272000"; d="scan'208";a="49578746" Original-Received: from 206-248-130-60.dsl.teksavvy.com (HELO ceviche.home) ([206.248.130.60]) by ironport2-out.pppoe.ca with ESMTP; 17 Nov 2009 22:26:40 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 620C2B40C9; Tue, 17 Nov 2009 22:26:40 -0500 (EST) In-Reply-To: (Lennart Borgman's message of "Wed, 18 Nov 2009 00:13:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117144 Archived-At: > I tested this a little. Loading the new cus-load.el now takes about > 2.5 times longer time than before. (This is an old pc, it now takes > 0.5 sec.) There are approx 15 000 put statements (before there were > approx 1000). > Is this the way to go to get completion etc for unloaded options (and faces)? I think the basic idea is right, but I think that using `put' for those variables is not a good idea (it makes the cus-load.el file large and slow). It's probably preferable to build a single alist associating file names to the list of vars defined in them (or maybe a hash-table). Of course, I haven't tried it, so it may end up being just as slow/big. Stefan