From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Convert README.org to plain text README while installing package Date: Wed, 08 Jun 2022 19:02:34 +0300 Message-ID: <831qvz5ejp.fsf@gnu.org> References: <87leuca7v7.fsf@disroot.org> <87czfopmsd.fsf@gnu.org> <87h74ztshe.fsf@gmx.de> <871qw31ois.fsf@yahoo.com> <878rqb5egg.fsf@localhost> <87czfjs4h4.fsf@localhost> <837d5r5jfb.fsf@gnu.org> <87leu7qkym.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10576"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@gmail.com, luangruo@yahoo.com, michael.albinus@gmx.de, acm@muc.de, stefan@marxist.se, tsdh@gnu.org, akib@disroot.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 08 18:04:30 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 1nyyAX-0002Pf-8p for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jun 2022 18:04:29 +0200 Original-Received: from localhost ([::1]:56356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyyAV-0001Ot-Kk for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jun 2022 12:04:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyy8p-0007Uc-MT for emacs-devel@gnu.org; Wed, 08 Jun 2022 12:02:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyy8o-0000bl-HS; Wed, 08 Jun 2022 12:02:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZL+imyIjKA0DjWK6v2xpXRwzGf+4wxKX5uGr47Ijt3s=; b=GG49sUje2Egy K2AE8oY8I+pUPe8688txlI60Ec1CPiInbAMLbHL7BTcLCiOsAys+O0HI+qWc3Gq5LEmZv9lo6sTrP fNjvo+a5oSJK8lVDHGGz2ONQ5F+axMPYtKThoguHxvOAUfOyV4WaIM0zICFeUSo6a65rytvBBBRX2 kkrM4Vas7MpubO2L0ZlPvzEwIGrx1+E/qRdXU9ylhimqrYS1AR4wNqowLpFbmgOHOCIEa3nCMKz6O kRPorMBAy7/f6rNVZQdjXdzOwtcnYuc/OF9XhSTtDmvxXNuXoeeJCIC0W0xCb6MnQeWx1WdvPzgTa ZKcjmjDcUoxtUE9Fqss7+g==; Original-Received: from [87.69.77.57] (port=2911 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyy8n-00066q-SQ; Wed, 08 Jun 2022 12:02:42 -0400 In-Reply-To: (message from Stefan Monnier on Wed, 08 Jun 2022 10:43:44 -0400) 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:290946 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , luangruo@yahoo.com, > michael.albinus@gmx.de, acm@muc.de, stefan@marxist.se, tsdh@gnu.org, > akib@disroot.org, emacs-devel@gnu.org > Date: Wed, 08 Jun 2022 10:43:44 -0400 > > w.r.t spending time in the GC, since the GC is run based on the amount > of memory that has been allocated (as opposed to the amount of garbage > generated, for example. which we sadly can't know in advance), the "mem" > profiler (aka `M-x profilter-start RET mem RET`) can be very useful > since it does a sampling-based profiling where the "time" is measured in > number of byte allocated (or some approximation thereof). Did you actually try this, and could indeed deduce where most of the garbage is produced? The problem with your idea, IME, is that Emacs calls memory-allocation functions from code that has nothing to do with consing Lisp objects, and it does that _a_lot_. So given a "memory" profile it is not very easy to see which of the parts are related to GC, and many times the hot spots aren't. But it doesn't hurt to try what you suggest, maybe we'd get a lucky break in this case.