From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: "Significant Garbage Collection Improvement For Emacs" - sweep_conses performance improved by 50%? Date: Sat, 29 Oct 2022 07:07:25 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5013"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tyler@tdodge.consulting To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 29 07:08:37 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 1ooe5F-00014q-0t for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Oct 2022 07:08:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooe4K-0003xS-G9; Sat, 29 Oct 2022 01:07:40 -0400 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 1ooe4J-0003xG-GG for emacs-devel@gnu.org; Sat, 29 Oct 2022 01:07:39 -0400 Original-Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooe4H-0004yf-V8 for emacs-devel@gnu.org; Sat, 29 Oct 2022 01:07:39 -0400 Original-Received: by mail-oi1-x22c.google.com with SMTP id r83so8203662oih.2 for ; Fri, 28 Oct 2022 22:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wwJryrqQ7o21VHeRPrhq07OdX/H5e5NyMk9Y0uu3T0M=; b=BYZSrvDUK/ndXDmmd1CUd/v4etXYH3ueoq5lmWTWPkmPPofSNqpZ0r2lr/ryiuRc0J R5cjjE/yKvxvlhDg6fpo5ECkV5dAhECdybHmvCY8S6XGhgB5ZWNcnbV7E/vNmN5mN6Al Q+UPwW1fdHIZJQxL1bEqZGo1zdlbWimvp3VuZzTO3C9R2E0DEK1Z6OU9pAqJXPmk1dlL 64YKox4ykBPrGIcTuztDR/MFWLgKZZCSLqh+qlwPPTBjyXNNCZMZu7akDXwSmqbPivhF R55pEIDRFaznJBqwmqmfcS7NWlY155zYz1Yvb8H6TaPkEB0gWuHR9vvn0rEdMTv04klT qRDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wwJryrqQ7o21VHeRPrhq07OdX/H5e5NyMk9Y0uu3T0M=; b=rbdF584Jw3rTZR/N5qRhLStVm6thUVff2y+ZbJhJwfIj3sTGa/NGvbLDyVICdYVLA4 IzqrwSSn7wYl25j5lSeLewM6XrXq8zhkYOSwD4Sm5tUtJllrpEcm42aw4SBFrDl3VT6N VbVTJ+kF4MJs7HG4/t7XorBGIh7JWHwH3g8Kmgj4p3Pnvv2mk9iR41V5MR3fb236yBni W4S+1LBw3BRL4ePQqJyqhwAXldcuugpiW09eFeAuDkh1mj4iQokYaiP+z2w1/ASvz5k6 wMsBF7BqIifNNqP0RX7BcVfUzKE6v7rRzcr+6XUkZ3w+q79+mjM2w2i5CMLvZ1bo/v9k DTyQ== X-Gm-Message-State: ACrzQf3J+RCKwNRuCoN/Ls0V1d6tD74NAoToT/EY1vIlOU2oTiwtVw4h yS9hWjyO40GmhwuDZQM3vamRIp/W1mn1lUCX1oS/Ug0KIEE= X-Google-Smtp-Source: AMsMyM7h9bjvZxoTKtJMv79u4rbsanmJNnU7n/PyvNfQY7jYbMEnr/eM0r3/0ejdvheejLOJFgoEfOyOkRY5wbsKLZA= X-Received: by 2002:a05:6808:1186:b0:353:b77a:a481 with SMTP id j6-20020a056808118600b00353b77aa481mr9787799oil.199.1667020056727; Fri, 28 Oct 2022 22:07:36 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::22c; envelope-from=stefankangas@gmail.com; helo=mail-oi1-x22c.google.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, 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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298710 Archived-At: In this blog post https://tdodge.consulting/blog/living-the-emacs-garbage-collection-dream the author asserts that a one-line patch "reduces the total wall clock duration for sweep conses execution by approximately 50%", at least in one benchmark. There are some caveats; read the blog post for the full story. The patch can be found here: https://github.com/tyler-dodge/emacs/commit/36d2a8d5a4f741ae99540e139fff2621bbacfbaa Is this a change we could/should realistically make in Emacs?