From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Indentation and gc Date: Fri, 10 Mar 2023 22:30:42 +0100 Message-ID: References: <20230310110747.4hytasakomvdyf7i.ref@Ergus> <20230310110747.4hytasakomvdyf7i@Ergus> <83a60kzmj6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18581"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org, Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 10 22:31:58 2023 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 1pakLF-0004b0-PI for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Mar 2023 22:31:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pakKI-00037m-DZ; Fri, 10 Mar 2023 16:30:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pakKH-00037O-1f for emacs-devel@gnu.org; Fri, 10 Mar 2023 16:30:57 -0500 Original-Received: from sonic316-12.consmr.mail.bf2.yahoo.com ([74.6.130.122]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pakKF-0002ka-1o for emacs-devel@gnu.org; Fri, 10 Mar 2023 16:30:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1678483851; bh=qyUmk0dPkmkj9NSfwxev62PuH+IB1iSgLvrnyP+o6h8=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject:Reply-To; b=gEaSJ3ASNXlEwvdTmvyAE1gYH9yUb8FM4fqwK86DSKRNtFCPnEw0998TW3XrGIo4ESuBXjGWCb+4rGWbGfz3aSCb2cpA281m4/Tam8lopEor/eTV+897Zzv6i4r+OusqeaHQrKGuEtp0WVCqiDDmczFy5Zm3eXkVLFY74aoAwrGdKNGILug9BpiEtFhupruyHG9XtIJcO77MZ8koFJSxGJVsVLUBWFNTJLo84685XxmguxxOmgFNFKbiHkXvdZMlhvEss4v7U+rK/gXwdgyu4NUjies6nRWwL0b4QzLknJ/zZE/pnZRY1FcAygvA2UtipeZmPObjg4bYulBCcN6Flg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678483851; bh=HSgqeTfSNAuypweygPXOaQJwstejBkmi2HT5Vu4z1mc=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=hMwv4FWr7bTpXjefnWLbF9M4csxNoR+rMkWXFoin+fMaCCLAXQg2sDgh5MigDLpez2alFA9WFvmbFJjMr2ZAhwXUu+Jl2jjZYn9e7/kKt0zqruCCd37dTbGLWXJnWrhrJqLuQbsSK/T9plHZ4iU637NTwzJQe+nlzVCQO0ydV8PHGsnVk71zvw5KKMQGzd+I7Zqh3pbZ1Pp+JyL92MSTMMi3KNx1khhEFd3RX1N+W2AmZH2As5v64piBXjD2jruR0mT9qXw21RohEHyRknMoHBFdSB5oMdvPgqMF0BWC942dA1jyogK8MRvKSWvhHNusN1x87NTQh+zl+txwxracmA== X-YMail-OSG: GF4sNCAVM1lsU3CbjISIXJDKvei1iHEUcy7hO27xB8ifELgwD5qHDsZxCV4Hdh5 mCyhaBtN9HHJZw0FdbsxqwRmS4L1GtErfFM09yxqFC594WXaqc_dH5p6wfsT7QApcNLS206xgWwh l8QSNQjOD2hnDLRVGagbQxRXEFtz0Jns2Jims0hqxCsYIJD.lb5L3hdjCs8pV5s6SbcOF92xh.SX OXcqVDcYLUUA4oFAHI1VkrlO9uWG3CVBToJnEog.cdgC9WAqsmbhppwoZbv73LdK.WF_3CwJWTiq 100220K7ZRU4tqw88KJpKCmuFZFYsN7UZ7xj7fSJ02AUP3qp8Xgo.es0J726IffgLl_U9xzuYi7Z EFLN0JsWZKH4ClCtpkX.bpx..pXVQ1GgEb9c5MXYBiIwSU_jfxGoY8veN5yP6fWZiUnq3DPpd5YU HBtrdpJUj_jcupNG0xG5mx6T9D2zlJfx6OCoVxI.9X6yzherLuq3CBda_XMGWCyzZUdePlPx9qPB 8V6Te3wQ4ZucjUusa_NfYLwTdkSBr0mU_JaiaDkomxNxENrrwh5SLPvyeqVVCdmS9mfDjGgXuZvy PWfkWdSzRmtauzze.my6R9Lsyhg0lYGZsGZIRx9ME4MHUg67XCzwM0H9yBi1zn6y124TnSFsApJu fzZAiLiFFBtdA3bXdSDgg0I6M0LMGHoTHNFl7l1WsCx4WKmMQqm7qju82SObeigSrOrOQKbNehxK Av2ikAxkdV1v4Hjxs8fE5jOhn3rhwLaqdxymzQEZ1FWQZScC7m3jZexgZLhDyrCmwBqf2NcLUwFN 7JBPimuNPdec.9yni19dDpR92By2fdlpFI_yegBf2j X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.bf2.yahoo.com with HTTP; Fri, 10 Mar 2023 21:30:51 +0000 Original-Received: by hermes--production-ir2-5b7d458747-s752v (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a4ebbe60582f65f01abb3a22df451796; Fri, 10 Mar 2023 21:30:48 +0000 (UTC) In-Reply-To: <83a60kzmj6.fsf@gnu.org> X-Mailer: WebService/1.1.21284 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.130.122; envelope-from=spacibba@aol.com; helo=sonic316-12.consmr.mail.bf2.yahoo.com 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304258 Archived-At: On March 10, 2023 3:52:29 PM GMT+01:00, Eli Zaretskii wro= te: >> Date: Fri, 10 Mar 2023 12:07:47 +0100 >> From: Ergus >>=20 >> Just today I enabled the garbage-collection-messages and I found that >> indenting the buffer with `C-x h ` in just ~150 C++ lines I get th= e >> garbage-collection message printed about 4 or 5 times before the >> indentation finishes=2E >>=20 >> So, two questions: >>=20 >> 1) Is this intended? if so, what's the reason? the indentation code is >> forcing gc or is it generating too much garbage? > >The latter=2E > >> 2) IF it doesn't impact performance=2E=2E=2E Is it possible somehow to = improve >> the gc message to have more useful information; or at least; to control >> the no-log in order to have some outputs in the *Message* buffer? > >How will a more detailed GC message help? > Hi, I explained wrongly=2E These were somehow two almost independent questions= =2E The more detailed GC and having a logging alternative are useful for de= bugging purposes=2E Because (for example) I don't know exactly how many GC = were executed during the indentation=2E So they are related but not directly=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E