From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AH/bExIGdF8yGwAA0tVLHw (envelope-from ) for ; Wed, 30 Sep 2020 04:14:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uA/JDxIGdF+uIQAAB5/wlQ (envelope-from ) for ; Wed, 30 Sep 2020 04:14:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CC5E3940105 for ; Wed, 30 Sep 2020 04:14:09 +0000 (UTC) Received: from localhost ([::1]:46430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNTVH-0005l8-MQ for larch@yhetil.org; Wed, 30 Sep 2020 00:14:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNTUv-0005kw-Ci for emacs-orgmode@gnu.org; Wed, 30 Sep 2020 00:13:45 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:33563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNTUt-0007tY-Jn for emacs-orgmode@gnu.org; Wed, 30 Sep 2020 00:13:45 -0400 Received: by mail-pj1-x102b.google.com with SMTP id md22so296089pjb.0 for ; Tue, 29 Sep 2020 21:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=vc7aVrN8PkXsAv67FAniqSIuJBwT3V6vD2kasRPEvtg=; b=kUTEeW0KKPvd4NhlxAHniCAkJmYxGFO684ixkiNcMcxxEEVh08aupODM/17u+MUN4y Xdk/8LAds5YTntcdBLRCtEUhxqqtgklUlW7s+j5g1VJEDOD/Rce1XHdOnnkk0+EVfh4a xfniQHd57zCW871hFAyXYywhLrlYwwNcOlwcZCCvu06tUQY0SD8AxqNYpfBCtaRm4DHv uKhkjufVa60BDo8hlBk2LTjQLl1U35ZsEQE5cLT8BV63qZ5J9EVfRJP5/IiqPm/xd8xZ NbkgPiI3fhxUjjTwTpqFN4NjQTej9S0piOtyspR6e3zylLap6gPyzLgQ5/qFL+8iOhjR klQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=vc7aVrN8PkXsAv67FAniqSIuJBwT3V6vD2kasRPEvtg=; b=EwF+3jQasXA4E4BxiqoF9v0tAud6xRFhJ2IjqtHvp2/bq3/HMSmoK0xyINjHPe7ZzK VBMsneZxYTWPYptC2tQjYjEk64bLO18yshvZ8BumA0VcY6iG7E8X3Vld5Y3v7OKo4r7r LnO/XGEFWz2JD4nLpfgqTdRFgncP7Bfk11ngPZTrCINfezp0DoXVTwCU1zJxPyqzgo++ wUCi/KoBQRUlHou4dbrL6tRP69jlIZYKhqufycic+kd2yLe/KbjKgZLNBqqcc6N2aZj/ JWm4kV5JsOy2RWqDeL7sV9EWw2vq/0r1exHMW8ptF3qmZ8BxGtoZDOnLORZT5/67WT1/ b75Q== X-Gm-Message-State: AOAM530gXfnuZkhNKH8VVeYzRE0UbXZTG4z0vdKYoMf2RzlFefRvk7O9 40k1YFEADPRA67STVwfdPtE= X-Google-Smtp-Source: ABdhPJzGm6QDJ+CaUjUFanOst6zyShcPG1KqOy27k1oy6FH/CfR190jqyNNMtoX1ZBK7TUaVJGGG8w== X-Received: by 2002:a17:90a:ae15:: with SMTP id t21mr356933pjq.91.1601439221725; Tue, 29 Sep 2020 21:13:41 -0700 (PDT) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id s19sm393284pfc.69.2020.09.29.21.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 21:13:40 -0700 (PDT) From: Ihor Radchenko To: Jeremie Juste , emacs-orgmode@gnu.org Subject: Re: opening a 0.5 MB org file is slow In-Reply-To: <87eemknvhc.fsf@gmail.com> References: <871rik4cv0.fsf@mat.ucm.es> <87eemknvhc.fsf@gmail.com> Date: Wed, 30 Sep 2020 12:12:33 +0800 Message-ID: <87a6x7q4we.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kUTEeW0K; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: odvIU5No/WLh > I'm afraid I don't know how to profile the opening of a file. Does > anybody know a function that would do the profiling like > elp-instrument-function for functions? There is elp-instrument-package. Also, I did successful profiling with simple profiler-start/profiler-report before and after opening the file. In general, time for opening org files depends on many factors [1]. Profiling is the way to go if one wants to find the bottlenecks. [1] https://www.reddit.com/r/orgmode/comments/ivifjv/a_question_about_orgagenda_performance_and_org/g5rxzf6/ Best, Ihor Jeremie Juste writes: > Hello Uwe, > > Can you test with emacs -Q ? > > A 1.6M org file took a little under 7 sec on my computer. > It probably depends on the number of minor modes are being loaded, font-lock, > auto-completion, etc. > > I'm afraid I don't know how to profile the opening of a file. Does > anybody know a function that would do the profiling like > elp-instrument-function for functions? > > -- > HTH > Jeremie Juste > > > > On Tuesday, 29 Sep 2020 at 21:11, Uwe Brauer wrote: >> Hi >> >> maybe I am just to impatient but on my 8 GB Thinkpad X1 (4gen) to open a >> 0.5MB org file takes around 15 sec. >> >> Any change to speed this up? >> >> Thanks and regards >> >> Uwe Brauer >>