From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Defcustoms, how do users find them? Date: Wed, 18 Nov 2009 04:31:25 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258515177 26992 80.91.229.12 (18 Nov 2009 03:32:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2009 03:32:57 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 18 04:32:50 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 1NAbHj-0002Lo-U1 for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 04:32:48 +0100 Original-Received: from localhost ([127.0.0.1]:53203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAbHi-00082o-VC for ged-emacs-devel@m.gmane.org; Tue, 17 Nov 2009 22:32:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAbGo-0007dR-UN for emacs-devel@gnu.org; Tue, 17 Nov 2009 22:31:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAbGk-0007bK-Pr for emacs-devel@gnu.org; Tue, 17 Nov 2009 22:31:50 -0500 Original-Received: from [199.232.76.173] (port=35503 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAbGk-0007b6-2T for emacs-devel@gnu.org; Tue, 17 Nov 2009 22:31:46 -0500 Original-Received: from mail-yw0-f194.google.com ([209.85.211.194]:42797) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAbGj-0005Z9-RB for emacs-devel@gnu.org; Tue, 17 Nov 2009 22:31:45 -0500 Original-Received: by ywh32 with SMTP id 32so847040ywh.14 for ; Tue, 17 Nov 2009 19:31:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=hHOBzpnS6pQPVkDKT0hC3LSWVBJyq5J3QIWclJPMlJM=; b=amRZpquTklisB2MqUhvEsJeIP78Q1NVdCkIXcfxOGJ/b1HLlFY0Su3Vu+qBUF3Ms/A yW1eOWLHI0DMsTfbkjCfST1Lldh378tWAF1YfT40geltXAuSzqOdEsbt1NmwmQHD3KUW hqkvCd73H8QgG6KX3z7NEtkdPmmPNsbLi4UxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=gezOzsmJjCzXI4AZioqaBUTS0H/h6woY9HC1MxAEncEPxqrD5lRBfqHL3DepMlCfC9 JwJSzmzZOH/t2IoCrPJvjBlSqteQqkEpOxakOX510EYO+Il8a3pbk85/3G2M1tiiUEsO jfy3WMgDtD5tFAzkHfWjGBygbeNEysa+mF92g= Original-Received: by 10.101.152.36 with SMTP id e36mr2538709ano.30.1258515105163; Tue, 17 Nov 2009 19:31:45 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:117147 Archived-At: On Wed, Nov 18, 2009 at 4:26 AM, Stefan Monnier wrote: >> 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 fa= ces)? > > 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). =C2=A0It'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. Maybe, I just tried to build on what is there. It turns out that after byte compiling the new cus-load.el loads in 0.1 sec on my quite old pc. Are there other aspects that makes it worth investigating this more? Maybe memory use? I can't see that efficiency in loading could be affected very much.