From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#19390: 25.0.50; `package-activate' is too slow Date: Thu, 18 Dec 2014 00:11:23 -0200 Message-ID: References: <86a92oddfp.fsf@yandex.ru> <86mw6nkc6n.fsf@yandex.ru> <54904241.8010000@yandex.ru> <5490BFCD.5050505@yandex.ru> <5490ED6D.5080808@yandex.ru> <868ui5ervl.fsf@yandex.ru> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f83a8e1d8c05d050a741b79 X-Trace: ger.gmane.org 1418868744 19817 80.91.229.3 (18 Dec 2014 02:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2014 02:12:24 +0000 (UTC) Cc: 19390@debbugs.gnu.org, Dmitry Gutov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 18 03:12:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y1QZc-0008KY-7V for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Dec 2014 03:12:16 +0100 Original-Received: from localhost ([::1]:52221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1QZb-0007vA-Cn for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 21:12:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1QZT-0007us-An for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 21:12:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1QZO-0002ZY-CT for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 21:12:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1QZO-0002ZT-7x for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 21:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y1QZN-0005bb-OH for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 21:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Dec 2014 02:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19390-submit@debbugs.gnu.org id=B19390.141886868621504 (code B ref 19390); Thu, 18 Dec 2014 02:12:01 +0000 Original-Received: (at 19390) by debbugs.gnu.org; 18 Dec 2014 02:11:26 +0000 Original-Received: from localhost ([127.0.0.1]:49404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1QYn-0005am-Q7 for submit@debbugs.gnu.org; Wed, 17 Dec 2014 21:11:26 -0500 Original-Received: from mail-ob0-f175.google.com ([209.85.214.175]:63594) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1QYl-0005ae-LU for 19390@debbugs.gnu.org; Wed, 17 Dec 2014 21:11:24 -0500 Original-Received: by mail-ob0-f175.google.com with SMTP id wp4so572480obc.6 for <19390@debbugs.gnu.org>; Wed, 17 Dec 2014 18:11:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=1dt0zbRWH1bjO/c7RyOXRMXtobETanQq5LxTERklDjo=; b=AZaglBhxGaY/x8S8VdFTKZ5U41cVgCc7Z/eOix4CjceAlntbzotBx8A7au//+6DXop hbw78KSTJDShXSjXmUE6+ON8U5e3DR3ti4XhhW4lQyYrZQuNS+TC+bex/SYgSNp+reGG 9d9V9cuTcptXvUQers7WUxpDPUtKGYI4nVWnSqs7O04kT9nIOlyWLMqcMZiNF2pkKIkV y4JSgfHU5SNTAGYgLv+X0cBVNuB5Kb3ZdFqgj+kStZB/cWTeoifM/uaunAuzD7B2g5qn gO/iqdoUD0WxnaUo5asuMJg09pHY3JGneOQI8bv9of3WIS0qpwR5gaF6k6LOteBvp8RC 00IA== X-Received: by 10.182.58.102 with SMTP id p6mr19670377obq.84.1418868683225; Wed, 17 Dec 2014 18:11:23 -0800 (PST) Original-Received: by 10.76.26.162 with HTTP; Wed, 17 Dec 2014 18:11:23 -0800 (PST) Original-Received: by 10.76.26.162 with HTTP; Wed, 17 Dec 2014 18:11:23 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: WF3q78B2DezsnDehb4TfM0Y9xkE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97480 Archived-At: --e89a8f83a8e1d8c05d050a741b79 Content-Type: text/plain; charset=UTF-8 On 17 Dec 2014 23:38, "Stefan Monnier" wrote: > > > Good point, thanks. Here's the patch without the initial filtering part. > > Still an improvement over the current code (0.6s vs 2.1s on my machine). > > Just a side note: the most important optimization is to make sure that > the activation of all the installed packages at startup time is done > without going through this "reload previously loaded files". > > IIUC, this is the first optimization that was proposed in this thread, > and is the main one to install (regardless of the others). Has it > been installed? I agree. And no, IIUC this hasn't been implemented yet. I suggested a couple of style improvements and haven't heard back. If nobody has the time to do these improvements right now, then please apply the originally suggested patch and I'll make the improvements later, next time I have a few minutes. --e89a8f83a8e1d8c05d050a741b79 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On 17 Dec 2014 23:38, "Stefan Monnier" <monnier@iro.umontreal.ca> wrote= :
>
> > Good point, thanks. Here's the patch without the initial filt= ering part.
> > Still an improvement over the current code (0.6s vs 2.1s on my ma= chine).
>
> Just a side note: the most important optimization is to make sure that=
> the activation of all the installed packages at startup time is done > without going through this "reload previously loaded files".=
>
> IIUC, this is the first optimization that was proposed in this thread,=
> and is the main one to install (regardless of the others).=C2=A0 Has i= t
> been installed?

I agree. And no, IIUC this hasn't been implemented yet. = I suggested a couple of style improvements and haven't heard back.
If nobody has the time to do these improvements right now, then please appl= y the originally suggested patch and I'll make the improvements later, = next time I have a few minutes.

--e89a8f83a8e1d8c05d050a741b79--