From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Bennee Newsgroups: gmane.emacs.help Subject: Re: Tracking down why emacsclient -c is so slow Date: Sat, 22 Aug 2009 12:27:46 +0100 Message-ID: References: <399CF4B9-9CAD-4E68-BB8F-09EF6A787E43@Web.DE> <1b4247eb-cf93-41ad-b118-5e6c0270edd5@s13g2000yql.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250940503 25879 80.91.229.12 (22 Aug 2009 11:28:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2009 11:28:23 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "A.Politz" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 13:28:16 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Meolb-0005M3-Dx for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2009 13:28:15 +0200 Original-Received: from localhost ([127.0.0.1]:54508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Meola-0007i0-MO for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2009 07:28:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeolC-0007hA-Ae for help-gnu-emacs@gnu.org; Sat, 22 Aug 2009 07:27:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeolA-0007fw-Q9 for help-gnu-emacs@gnu.org; Sat, 22 Aug 2009 07:27:49 -0400 Original-Received: from [199.232.76.173] (port=52516 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeolA-0007fk-MK for help-gnu-emacs@gnu.org; Sat, 22 Aug 2009 07:27:48 -0400 Original-Received: from ey-out-1920.google.com ([74.125.78.148]:15899) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeolA-0004GZ-4r for help-gnu-emacs@gnu.org; Sat, 22 Aug 2009 07:27:48 -0400 Original-Received: by ey-out-1920.google.com with SMTP id 5so352093eyb.24 for ; Sat, 22 Aug 2009 04:27:46 -0700 (PDT) Original-Received: by 10.216.29.66 with SMTP id h44mr451183wea.136.1250940466385; Sat, 22 Aug 2009 04:27:46 -0700 (PDT) In-Reply-To: <1b4247eb-cf93-41ad-b118-5e6c0270edd5@s13g2000yql.googlegroups.com> X-Google-Sender-Auth: 37620a7813d207f1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67401 Archived-At: 2009/8/22 A.Politz : > On Aug 22, 10:10=A0am, Alex Bennee wrote: > >>after-make-frame-functions at Fri Aug 21 19:18:21 2009 >>server-visit-hook at Fri Aug 21 19:18:25 2009 >>(No files need saving) > > This together seem to imply, that the time is spent in one of the > after-make-frame-functions. > > Have you done this with 'emacs -Q --daemon' ? > Yes, it does seem to be something introduced by my .emacs frame modification functions. Adding some additional instrumentation made it go away although I have no idea why [1]. > elp-instrument-list won't allow to profile all functions, > but you can do it anyway. Expect your emacs to be broken > afterwards. > > (progn > =A0(require 'elp) > =A0(elp-instrument-list > =A0 (mapcar #'intern > =A0 =A0 =A0 =A0 =A0 (all-completions "" obarray > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0#'(lambda (sym) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(and (elp-= profilable-p sym) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (= not (eq sym '+)))))))) Hmm, my version of elp doesn't have the elp-profilable-p [1] http://www.bennee.com/~alex/news.php?wl_mode=3Dmore&wl_eid=3D1292 --=20 Alex, homepage: http://www.bennee.com/~alex/ http://www.half-llama.co.uk