From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Slow usage of capture templates Date: Wed, 04 Jan 2017 10:35:39 -0500 Message-ID: <8737gyrg6s.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOnbl-0005nw-8o for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 10:36:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOnbg-0006qc-CI for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 10:36:09 -0500 Received: from [195.159.176.226] (port=38002 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOnbg-0006qA-4T for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 10:36:04 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cOnbP-0004H5-Nw for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 16:35:47 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Johan Ekh writes: > Hi all > > I'm on Windows 10 with Cygwin-X and running Emacs 25.1.1 installed with Cygwin installer. Org-mode version is 9.0 installed from Elpa. > > I am experiencing very slow usage of my capture templates. When I hit C-c c my different templates show up but when I select one of them nothing happens for a long time then after 30-60 > seconds it suddenly works as usual. This happens every time regardless of which template I select. > > When I start emacs without X, i.e. with the -nw flag, my capture templates works fast as usual. > > Does anyone know what I need to do? > > BR / Johan > First step is to probably profile org and see where time is spent: M-x elp-instrument package RET org RET ... then try a capture ... M-x elp-results Second step is to bring up a terminal and run htop in it, then try a capture and see if some process (maybe emacs, maybe something else) jumps up in CPU usage. Also try with a minimal org file and no other customizations: it may be that something in your configuration causes it (unless others can see the same slowness on similar systems). This kind of problem may take a long time to debug, so it's important not to get discouraged. -- Nick