From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vikas Rawal Newsgroups: gmane.emacs.help Subject: Emacs/prelude: lag in opening big files Date: Fri, 21 Jul 2017 07:37:55 +0530 Message-ID: <25646CD8-2C85-4840-B72F-8B2EE79D9349@agrarianresearch.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500644184 19929 195.159.176.226 (21 Jul 2017 13:36:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 13:36:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 21 15:36:19 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYY6M-0004uZ-0r for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 15:36:18 +0200 Original-Received: from localhost ([::1]:43247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYY6R-0005f2-N8 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 09:36:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYNMN-0006be-FH for help-gnu-emacs@gnu.org; Thu, 20 Jul 2017 22:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYNMK-0005SD-6W for help-gnu-emacs@gnu.org; Thu, 20 Jul 2017 22:08:07 -0400 Original-Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]:33612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYNMJ-0005Qt-S3 for help-gnu-emacs@gnu.org; Thu, 20 Jul 2017 22:08:04 -0400 Original-Received: by mail-pg0-x22d.google.com with SMTP id k14so22296810pgr.0 for ; Thu, 20 Jul 2017 19:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agrarianresearch-org.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:message-id:date:to; bh=kr8E2aL35UzwhkaZOB0soCrapUxWJiwd4gZwDtWcyPo=; b=qiikVpeqsl9mmBxY6JLxuoV63WjoMxJRoffE3NYmXPttSvUlmv3P0UDfbbnIhdo3n8 qtjEF19E/OmNNHqzYN4s+vAVcXkb1GNmOKxk20Z0tnIqi4Dmi9XVLnhHbBgF9FRYA1nF rfWxJJrB5hoaZjjDxI6UV5LXA+b/AzPQOZmNFaxBND8BVSjF4qU2e247CXhazYzynWLD XlwSDsjMe1NONmjRD6fV1f24457bf+rQOdTkkB6L1Mc97xGnPSv2Os8u+m9oXOAjQfdQ ldOGKFaUf9JdbjYLKJsRXeWXIWKLdwFMahTk5aYCtOioxSf/T5iC0yACJKTC8ErlSJ2s cmwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=kr8E2aL35UzwhkaZOB0soCrapUxWJiwd4gZwDtWcyPo=; b=jmJHBv266Qouq3UReIRi/T1LDAQFAkGu9vv8zKEcAFhpr4VI2wfRHaeckPBcY9tRQh 4MfmJhzzr2cxAUmcuvqBsCXzjswhrmT2Wof/oqUTS5pJYFK4KsZwT84/B1q9oB/Jmpr3 6gV96JIEHU/KPRRVx/Xos0+0HpOwpNWvEHA2ursYi3WSmY+2t25V98jI0PzEIoyd+/0+ /WODwl6KycknWr7ARfyISDG0U2OaLEvYiVbfRhCeeCMJKsEFRL3eWHIAuSm/oITAqfad oZuGczdJcYePcAxj88yJtO63K0Rl6zB2FYIJG1O43zXWul/pq0lULrShpO1ZqIiceACm HGMg== X-Gm-Message-State: AIVw110OA3WFC0Yn/j79o8zNb61S+kzHpBVsT12mA35aMYI/E9J85EYj egY+CVRL1Q+OeRdabM5ibQ== X-Received: by 10.84.231.203 with SMTP id g11mr6384594pln.241.1500602880865; Thu, 20 Jul 2017 19:08:00 -0700 (PDT) Original-Received: from [192.168.1.34] ([59.176.42.82]) by smtp.gmail.com with ESMTPSA id u38sm5978595pgn.74.2017.07.20.19.07.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jul 2017 19:08:00 -0700 (PDT) X-Mailer: Apple Mail (2.3259) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22d X-Mailman-Approved-At: Fri, 21 Jul 2017 09:35:38 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113805 Archived-At: I have recently shifted to using prelude for my emacs configuration. I am having a strange problem that I have never faced before. When I = open (C-f) a large file, it gets stuck for a long time. I have to wait = for eternity before the file would open. But if I C-g and cancel the = process, and do it again, the second time, it opens in a snap. I have tried it with many files, and it happens each time. If a file is = opened and closed, and I want to open it again, emacs does the same = thing all over again. That is, slow to open first time, but opens in a = snap if I C-g and start again. How do I debug this? I tried to use profiler to figure out where was = emacs stuck. Below is the main part of the report on cpu usage when I = tried to open a large org mode file. Looks like helm is one of the = culprits. Is this usual? Is there a way to deal with this? Vikas - command-execute 6903 = 57% - call-interactively 6903 = 57% - funcall-interactively 6575 = 54% - helm-find-files 6575 = 54% - helm-find-files-1 6575 = 54% - helm 6575 = 54% - apply 6575 = 54% - helm 6575 = 54% - apply 6575 = 54% - helm-internal 6575 = 54% - helm-execute-selection-action 6103 = 50% - helm-execute-selection-action-1 6103 = 50% - helm-find-file-or-marked 6102 = 50% - apply 6102 = 50% + # 6102 = 50% + helm-get-actions-from-current-source 1 = 0% + helm-read-pattern-maybe 470 = 3% + helm-initialize 1 = 0% + # 1 = 0% + byte-code 328 = 2% - timer-event-handler 5047 = 41% - apply 5047 = 41% - org-indent-initialize-agent 5042 = 41% - org-indent-initialize-buffer 5041 = 41% - org-indent-add-properties 5030 = 41% - org-indent-set-line-properties 1159 = 9% org-add-props 1 = 0% - org-at-item-p 29 = 0% + org-list-in-valid-context-p 26 = 0% org-list-item-body-column 1 = 0% org-current-level 1 = 0% # 1 = 0% cancel-timer 1 = 0% + savehist-autosave 4 = 0% auto-revert-buffers 1 = 0% Vikas=