From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8PFoFHMGdV8hFAAA0tVLHw (envelope-from ) for ; Wed, 30 Sep 2020 22:28:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GLhREHMGdV+TLAAA1q6Kng (envelope-from ) for ; Wed, 30 Sep 2020 22:28:03 +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 F37089402A5 for ; Wed, 30 Sep 2020 22:28:02 +0000 (UTC) Received: from localhost ([::1]:38720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNkZt-0001OV-OO for larch@yhetil.org; Wed, 30 Sep 2020 18:28:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNkZI-0001OC-9Q for emacs-orgmode@gnu.org; Wed, 30 Sep 2020 18:27:24 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:37201) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNkZG-0002qe-Rc for emacs-orgmode@gnu.org; Wed, 30 Sep 2020 18:27:24 -0400 Received: by mail-wr1-x429.google.com with SMTP id z4so3475641wrr.4 for ; Wed, 30 Sep 2020 15:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=SG6gcOPGzjPTt+hLcKR8gRjgjVJiL09V1a2k5JKHeuk=; b=OyZqcKkmStW3fUvi51S85M72qFZLgOzMf6DhAC6XxZmc2+2T4AlOQcWNv/muG4/v6o r7RGbdPVFjTCfIhw4UeS6bXqobgvUa9Tu+wNjJ8hCJfC1gUz7NUI1baYEvqtfs0C+/2r cQ3UMt/qYlA0JTa11jB3K5ckpm2IXxw1qa52JV/puhr0D9G4aRatNb1JQP0cXADNNGBL V5WBQSIyW6pLGVPehjTBweHKkB+UOMNiIiML2erVUD3nUyOeBzCVqYpl/qJjbZzIa3wK WIJ0UYcnCxCnkEteq5DS1SJYrr13HRxd/SAwKNoRIZFeN2EvOQfFMP6nS25wTXIIgLbP 1dwA== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=SG6gcOPGzjPTt+hLcKR8gRjgjVJiL09V1a2k5JKHeuk=; b=UTOjw51mGLGmN3z1s03oUucHI1KTKheCCOlYyU+2uIXmTESNZzdSCHD/LDciAMTzEs Air2i1DxMS5S75SvboczaoA0wiqgZc3e44F3QpkB+YcTk6AFCmKQfHtCq32cChwNO0f5 oUvd7vJBu9cO8ehIvNNlKbWCoOcMFiKhy1c45yyBT2M1mQYHrJNhAQdzeFvAcY0td5c8 dleU6Wn/tc8ci4TumFgY1n9phy8wUj8tB4sJBbl83NuYwiTwxTNrRN9zXxYbSJmbP1yJ bami70hTJbrlXMBrAIhpPRRGoa7Vx7gzqRRgtyOw8sg0Bw4LaHZaTLQJoWKAW1tE3DXi IHBw== X-Gm-Message-State: AOAM531StVPAdPzHBygQfE8MYyxSfcuNjGCwh3amfGI8i51E0siswEl4 IhkiUf3L+WOsd6BfZQgAxO9AHF2k+Xs= X-Google-Smtp-Source: ABdhPJyqYucfzYUai9MnrwY8suxRNaPmbLNwAqFkpTg9d4v6J3AiQxs2VUhOhQ3RtQFR6QVtUplDHg== X-Received: by 2002:a5d:5751:: with SMTP id q17mr5411897wrw.409.1601504839496; Wed, 30 Sep 2020 15:27:19 -0700 (PDT) Received: from freegnu (24.183.22.109.rev.sfr.net. [109.22.183.24]) by smtp.gmail.com with ESMTPSA id l18sm5331761wrp.84.2020.09.30.15.27.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 15:27:18 -0700 (PDT) From: Jeremie Juste To: emacs-orgmode@gnu.org Subject: Re: opening a 0.5 MB org file is slow References: <871rik4cv0.fsf@mat.ucm.es> <87eemknvhc.fsf@gmail.com> <87h7rf5bd4.fsf@mat.ucm.es> Date: Thu, 01 Oct 2020 00:27:18 +0200 In-Reply-To: <87h7rf5bd4.fsf@mat.ucm.es> (Uwe Brauer's message of "Wed, 30 Sep 2020 21:10:47 +0200") Message-ID: <87a6x6nbnd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=jeremiejuste@gmail.com; helo=mail-wr1-x429.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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=OyZqcKkm; 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.71 X-TUID: 8mFkuoGFpEOO Hello Uwe, Very well, it seems that we are on the right track. So you might gain some speed by preventing some minor modes to load at the beginning and load only when you need them. Like Ihor Radchenko mentioned in his previous a great way to diagnose the issu would be the following: 1. M-x profiler-start cpu 2. open your file 3. M-x profiler-report It will let you see which functions are slowing you down. HTH, -- Jeremie Juste