From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4MlrFxZ/a18IeAAA0tVLHw (envelope-from ) for ; Wed, 23 Sep 2020 17:00:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +JJNExZ/a18uBwAAbx9fmQ (envelope-from ) for ; Wed, 23 Sep 2020 17:00:06 +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 A63309406A1 for ; Wed, 23 Sep 2020 17:00:04 +0000 (UTC) Received: from localhost ([::1]:34912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL87f-0006ii-L6 for larch@yhetil.org; Wed, 23 Sep 2020 13:00:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL86Z-0005qp-V7 for emacs-orgmode@gnu.org; Wed, 23 Sep 2020 12:58:57 -0400 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]:39002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kL86Y-0006B8-3T for emacs-orgmode@gnu.org; Wed, 23 Sep 2020 12:58:55 -0400 Received: by mail-yb1-xb31.google.com with SMTP id 67so272247ybt.6 for ; Wed, 23 Sep 2020 09:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=i2PQO+Cy5NBWWAlTUHlOd/tsx+pTiV8uFLxX5ti+Xak=; b=rN3pe47llWdlpr7W1tqAwrSXnxpQW2VlLIKAZYRRNPYwALV3QtyRjX79lXu4ih+F3k Nw4HOoN+6V3I9L8Mf8e3Hyvf2n1Mxb48tCpwSqC2ehHnSjDb45UmZbVESAHZTW76nl3/ R5CcKpwgP3id0Ec3sCgrCfTrDoWSKu0G6LiYORNp/P06xlKn2+67GQ6QtG2FL7bUfJu1 oQz00smnFyAIZo2GXkOb6oVhxPwXydc9hVGqFnBG5F3+1B7G7g/QPxMJ0x5Jups2gkx6 /gs4+BdOiWET4Vg/rEo3GJekafN8w4s4/31j2gtzh/I0yAkqqddS5qlI/QozwbkMdWso uZ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=i2PQO+Cy5NBWWAlTUHlOd/tsx+pTiV8uFLxX5ti+Xak=; b=X/1r39wCn9mTaI8o1/2IkEGxC/ALMoelJB0nRJ4e2ktGjooJBCbP5wainVHJJN1x7T 5Emely0Eco7PXYPyOxYa8qc3DHaZBwHRxEJlpFHyjz2dkSE4BSpamduyqv2HMZaxXd/Z 2qnMEXvc3ZxMrUwsldfMIjpZtrKvElND3uZ7HBnmt4xifO6UgXgbKEs/+d7ohmn/EVZh cnZRU+IfgUQMp8Y5iXejnO67PHmbMbLKX+DkF7vBblAnZ+Ku1Y4sopgyUYrVQC2F1T2K qV0ZaK7MTdYLRXrxBhSf5ZCbAktHMoDLAhSyVjFXIUZ7wOssTA3KQjyUhVOECIfFprcQ QTjw== X-Gm-Message-State: AOAM530PuJPETnQFj4QP9dmvIbw90h37OYjLFWHcwMTwJ3GRV7m9oKCQ +nqiSurySfNoQB5GZJoYNJ6+vJGsof2rkrLTafo4fnAmhmola6c= X-Google-Smtp-Source: ABdhPJxi33Xi1sfYsRRV/qxi22GgQ9R7We99QyesVAWl0MoEczbYZvLo6L3WMks8zWKZI4XspJ8MUpalbgMF7qnJ1mQ= X-Received: by 2002:a25:606:: with SMTP id 6mr1435620ybg.86.1600880332058; Wed, 23 Sep 2020 09:58:52 -0700 (PDT) MIME-Version: 1.0 References: <87eemtw9g5.fsf@localhost> In-Reply-To: From: Peter Bienstman Date: Wed, 23 Sep 2020 18:58:40 +0200 Message-ID: Subject: Re: Slow to open certain file To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=peter.bienstman@gmail.com; helo=mail-yb1-xb31.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=rN3pe47l; 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: TET+hIp8Dd0j Ok, it turned out the url http functions also showed up when I was trying to update packages. It seems I'm suffering from this bug: https://emacs.stackexchange.com/questions/60560/error-retrieving-https-elpa-gnu-org-packages-archive-contents-error-http-400 and perhaps for some reason when opening the file through ivy, emacs tried to update a package? Anyway, I updated to emacs 27.1 to fix that particular bug, but the file still loads very slowly. I'll report this to the ivy developers. On Wed, Sep 23, 2020 at 9:21 AM Peter Bienstman wrote: > > Attached the profile when i open with 'find-file'. It still seems to > call ivy-read, but the interesting thing is that now a lot of time is > apparently spent in 'url-http' functions. The file contains lots of > web links, so it seems emacs is trying to do something with them when > it really shouldn't... > > Cheers, > > Peter > > PS: this is not a permanent paper archive, but rather an ephemeral > collection of journal rss feeds > > On Wed, Sep 23, 2020 at 3:48 AM Ihor Radchenko wrote: > > > > I have no issue opening your file (under 1 second). > > > > > I also attach the profile. > > > > Looking at the profile, the problem seems to be with ivy. Can you try > > opening the file without ivy. Something like > > > > M-: (find-file "~/Org/notes.org") > > > > P.S. You can also add notes to papers from org-ref. That is a great help > > when your paper database grow bigger. > > > > Best, > > Ihor > > > > Peter Bienstman writes: > > > > > Opening this file takes more than 10 seconds: > > > > > > https://www.dropbox.com/s/tg7pr6tetlh7jwb/toc%2020200922%2007.00.01.org?dl=0 > > > > > > I also attach the profile. > > > > > > I have org files which are much bigger, and they open almost instantly. > > > > > > This is on Windows 10, emacs 26.3, all packages updated to the latest version. > > > > > > Is there anything I can do to speed this up? > > > > > > Thanks!