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 Zu1jKMENdF/dagAA0tVLHw (envelope-from ) for ; Wed, 30 Sep 2020 04:46:57 +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 uLbHI8ENdF/XMgAAB5/wlQ (envelope-from ) for ; Wed, 30 Sep 2020 04:46:57 +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 29B3A9402B1 for ; Wed, 30 Sep 2020 04:46:57 +0000 (UTC) Received: from localhost ([::1]:39476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNU10-0001KV-Gd for larch@yhetil.org; Wed, 30 Sep 2020 00:46:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNTpy-0004gH-8Z for emacs-orgmode@gnu.org; Wed, 30 Sep 2020 00:35:31 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:33989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNTpw-0000rG-DA for emacs-orgmode@gnu.org; Wed, 30 Sep 2020 00:35:29 -0400 Received: by mail-pf1-x431.google.com with SMTP id k13so325817pfg.1 for ; Tue, 29 Sep 2020 21:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RkoQDMJlfsb/l2GUPK5Jy0G7pxs1LbM6L7Pwi0sR9qk=; b=mA1YnVsj1i4DUKdWnICN7UhK97Z3FyXbrZJ+UccZ63Yl+VgFkx+gy9clpK6LZIc/Qu TVd/fcdNoUr5XxkDF+1sxZXtFf50qvb106bvAPJvs/udzLDMAj3aNOo9Wk+CkJyCVBnE st1MCZAFiDarASYGyCCUlhSX9sG9hDl6PTHg7oXs1emfUUmlXvip4Dag9rrjoWodyro9 8L1k2PPo8dPw5c669gDrNqHckNByqoqEzabL3T3nrkyd16npf0E344o1B55cX2ot5Ef1 vw82qfG3Hki4lJeF90gOjtE9fo4SKLW3a/05/6YZ2mH0JagWd4iP94zYY3GPvRwZyrdR 7c8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RkoQDMJlfsb/l2GUPK5Jy0G7pxs1LbM6L7Pwi0sR9qk=; b=nNXXqGSPVSNHQ419r2nvPBjjZLqrtjzNIyV72C9ee670k5GVG4Pkm9lzkdyhjN3Mvb RgsP2b/IzTFmq/teJyHUf7DhAG9SKlJYyMtlh0Ox2zNKHrIc+d43UbjWvjy/VSMZRRU9 h8QAQ2plWFXGZbtVNuIerfgRRn5xgG4TUK7fhEnPxhBUMnHTMNRDjZl2xKVuAHA7JNti WT7PPXQBE0Kz0/7PseU/PU3Hp/lFs0FjiBbOQHNC4lMwIzsUItlNnKm93wGpPf7yqU2i 95h3g0+GCHVkH4WRev5fWokiiB3fvGWmTmvXFHqmYxsEOAE7yv/ky9aZILVIR39Nssyh U8Zw== X-Gm-Message-State: AOAM532PX2nsyk6iJuqv3rypQoHQaNMoEsN7pnSjOGOe3klTN3d13ija OMYwJ/2YWY+rR61Ep0ydtvUTV+e6/PsqPv0tWbezWeCQqEY= X-Google-Smtp-Source: ABdhPJy13RrKCELqT263DbHvxwLXux9raSfmqfyEF0zF0B3Wc0Gipr07ppt72UsaKHvLngT96KJQmKygLhdNUv/VCmM= X-Received: by 2002:a63:1312:: with SMTP id i18mr704114pgl.441.1601440525508; Tue, 29 Sep 2020 21:35:25 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a10:8371:0:0:0:0 with HTTP; Tue, 29 Sep 2020 21:35:24 -0700 (PDT) In-Reply-To: <87a6x7q4we.fsf@localhost> References: <871rik4cv0.fsf@mat.ucm.es> <87eemknvhc.fsf@gmail.com> <87a6x7q4we.fsf@localhost> From: Samuel Wales Date: Tue, 29 Sep 2020 21:35:24 -0700 Message-ID: Subject: Re: opening a 0.5 MB org file is slow To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=samologist@gmail.com; helo=mail-pf1-x431.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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=mA1YnVsj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 0.09 X-TUID: dHPpgkNhqOw3 a long time ago i discovered that drawers were the bottleneck. i removed a lot of them and got much faster loading speeds. idk if that is still true. i think there is an effort to speed logbook and properties up by changing from overlays to text properties or so. recent maint is perhaps twice as fast at loading for me as the previous release was. On 9/29/20, Ihor Radchenko wrote: >> 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 >>> > > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html