From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Convert README.org to plain text README while installing package Date: Wed, 08 Jun 2022 20:51:35 +0800 Message-ID: <87czfjs4h4.fsf@localhost> References: <87leuca7v7.fsf@disroot.org> <87czfopmsd.fsf@gnu.org> <87h74ztshe.fsf@gmx.de> <871qw31ois.fsf@yahoo.com> <878rqb5egg.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37877"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Michael Albinus , Alan Mackenzie , Stefan Kangas , Tassilo Horn , Akib Azmain Turja , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 08 15:14:24 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyvVw-0009dH-42 for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jun 2022 15:14:24 +0200 Original-Received: from localhost ([::1]:52134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyvVv-0007uK-4O for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jun 2022 09:14:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyv9x-00045Z-1A for emacs-devel@gnu.org; Wed, 08 Jun 2022 08:51:45 -0400 Original-Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:36760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyv9d-0000St-Ir; Wed, 08 Jun 2022 08:51:35 -0400 Original-Received: by mail-pj1-x1029.google.com with SMTP id u12-20020a17090a1d4c00b001df78c7c209so23707165pju.1; Wed, 08 Jun 2022 05:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=A+9CvqKSnUyYQ4UExv+lV+0jObmyctlprd8wfF3lq5A=; b=VO38ozrF/sK/QmkbjgD7aSZEVUCKF51mFVpj1AGHNhZApRnQiZ0/aTKwhWpxYCZoBo MPi4BnhoADvjG9MgttcLoAXXgkiGKwe9t75P4CbxK8Ecg25t+Fm6QUbEIs8E0kh8AMbo HXJXNE8qLzinOshOCtPUkQpM3JXugmdLajedT01R/T3VyjNQza0IRxn3eE7l+T3xWIxD 9NNMKfUT5HC9Kcr0t2nYeVsqzTJwsJt+BKsfjqtdMbjY70Zme5eUD3tFZ0WX8qE29ZZ7 6WKceC9zDQupCc6JtDZ8q5/3WojgxCmOJX1J0cJwNtBBzlgJtOecqzhVQjCWIbP/9mIa AHEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=A+9CvqKSnUyYQ4UExv+lV+0jObmyctlprd8wfF3lq5A=; b=RYbG4TIQX5HSldoHVMtHrFEg6SQTAa/iYkQQe1eSFWqIiz/QqCkC/zKwhCcur7gK2x oBTLbPRfNkSgAo+SrLp7TYQ6OvevjsSwXcfGCt6LpdZPVbScXDnjxjeU9U6x2QFZVd+L Mo1mByvW216rBVBKPy0YOSdzS71uWaDtnpjBqyLxiwINVQnqgT8wvuMQWBmpj7+LVrKx Jde81wkKmKplfzqIX4lFW/hceV5DS1jpG3rFd8xjKXd49wpEjEEFutqY6cGYlpy+9yAf BHzJ0pFKEURuSE7uFMP2+nIAn4m1w8IMbDYUfTNbDraycr5HBPyxVSOwPBSLspSNwg1Z 5efQ== X-Gm-Message-State: AOAM530Q6lh5n1iA6xvIOF/kERMEMHF8ieaNb9adECcf/LCMdWAa1TB4 A0/DblExl6pgY7Ni4OLtk0Q= X-Google-Smtp-Source: ABdhPJyi2BAmYmCzOghlMQL1y/TSBDiAdnHEjxwcL69/NZFKzhkCeX1t7DQfLRNTpbNsPguAI8m89A== X-Received: by 2002:a17:903:244b:b0:167:74f3:74aa with SMTP id l11-20020a170903244b00b0016774f374aamr17187502pls.67.1654692657369; Wed, 08 Jun 2022 05:50:57 -0700 (PDT) Original-Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id ic6-20020a17090b414600b001df93c8e737sm14057732pjb.39.2022.06.08.05.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:50:56 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1029.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:290923 Archived-At: Stefan Monnier writes: >> I've heard about the problem with loading multiple times and I do agree >> that loading can be slow, especially when various kinds of extra >> functionality is requested. However, I am wondering about the actual >> numbers. How long is long? > > I think it's fairly hard to quantify accurately: last time I tried to > benchmark it, the numbers (around 1s) were much lower than what I was > experiencing subjectively (I'd estimate 5s or more). So, AFAICT, the > time to load Org mode is strongly affected by the size of the running > session or maybe by the presence of various third party packages, which > means benchmarking > > emacs --batch --eval '(require `org)' > > doesn't give a representative picture of the problem. I suspect that garbage collection is strongly affecting your loading times. It is taking half of the time even with clean Emacs. I imagine that GC sweeps are even more costly when you have a sizable allocated memory. Loading ol-* staff appears to generate a lot of GC runs because of mapconcats over all the links types with O(N_links^2) strings being allocated. I took a note of this. I am sure that memory usage can be improved on loading. Best, Ihor