From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WJI7IDNIJ2DqNAAA0tVLHw (envelope-from ) for ; Sat, 13 Feb 2021 03:32:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6LT2GzNIJ2BkHgAAB5/wlQ (envelope-from ) for ; Sat, 13 Feb 2021 03:32: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 0E2ED1AE70 for ; Sat, 13 Feb 2021 04:32:03 +0100 (CET) Received: from localhost ([::1]:55246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAlf7-0006zz-3n for larch@yhetil.org; Fri, 12 Feb 2021 22:32:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAldR-0006yT-72 for emacs-orgmode@gnu.org; Fri, 12 Feb 2021 22:30:17 -0500 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:38086) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAld5-0006xg-0c for emacs-orgmode@gnu.org; Fri, 12 Feb 2021 22:30:16 -0500 Received: by mail-pg1-x529.google.com with SMTP id m2so891384pgq.5 for ; Fri, 12 Feb 2021 19:29:53 -0800 (PST) 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=t/g8inbllTgLIG1cFQ4JoND4Tp+4W6C3vliNiKyf1r4=; b=qyaZaLA6IrMHTsRvgahfyRZXSgjyfzI4oIfxwO5mID8jInZ8ZgZYqWybG2gzAM82WN SvxMneHDle9maqqDibNcA8aR827Ey2CojMKfkRgeJxUoKuO+K9lH89vtTQAuLEHPfM7j CLHQV/oEWgnIH18ok8VvLZ2u/oWUME1vMAy+ir+KstaMwW51WZTAenMvMuBkaWm2ldD/ wr8X1IuPrb4I2iwP0hw6xKfS7sWncQ8w2o81pFKrwMYiDwkRMgUZI2mwLUEpJ/G1QLPv GwiFeI2fo6jDaQlq7EVL1l53UfhLNQpAOcJBXepV8IPaJ8SJyHQhr1carz/ooSVSXR9R NpLA== 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=t/g8inbllTgLIG1cFQ4JoND4Tp+4W6C3vliNiKyf1r4=; b=mp715m+WP0NYLrWjYe2zxkQ5NJiAaip7HYQzbIh+WtgGIwj3JH8r559QPXZmscKfQO iwT6HjC18wyeb0RxzYfu7qwhdqa296zAxnBhdA0mf0jVcB/iyWzhBGkfQOtlHOId4YIY /XBsALa91nfzacLRwl9HPyQQBIID+gQxsZBnz6qI+QRDgRfk2NDqK5ODFWolGYrfK6Fp U3rHTFccfzRZrKgsLSCznS62EDf+TiPGkE2bzWk9WtfwMyqxEAAkJ0D5Vrkj8bosajnt SCE9HLckffhB2hujYcV4vaw8blFrsk/2txkDlcw7qtXoiLDbtZgmmp6tUM7oVsQ/uHwJ /xLQ== X-Gm-Message-State: AOAM533N1uM4zfJMzKDiQWEFyqOaLZdrGJDeUnF2wZxea/0AY2LaiI2R ZXdE7n9cGQwLS+Rt5JVT9Rf6aCnVuBeFtg== X-Google-Smtp-Source: ABdhPJyBJYPaBJSBRE0b4KnvcMUCkrHHRpPQxv64LmS1AENql52dv1GEjZKWaDpBGGyhkGDy57qBAw== X-Received: by 2002:a63:f4e:: with SMTP id 14mr6094448pgp.3.1613186973406; Fri, 12 Feb 2021 19:29:33 -0800 (PST) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id 25sm9750054pfj.120.2021.02.12.19.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 19:29:32 -0800 (PST) From: Ihor Radchenko To: Christopher Miles , Org Mode Subject: Re: Is it possible to optimize Org Mode org-activate-links ? In-Reply-To: References: Date: Sat, 13 Feb 2021 11:33:38 +0800 Message-ID: <87eehktze5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=yantar92@gmail.com; helo=mail-pg1-x529.google.com 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-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=qyaZaLA6; 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-Migadu-Queue-Id: 0E2ED1AE70 X-Spam-Score: -1.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: wMRehvbljbrS Christopher Miles writes: > I checked org-element-context source code, it's not so long and complex. Why it caused so many items in Memory profiler result? Is it possible to optimize it? You can try to use org-element-cache. That might help. Best, Ihor