From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: yyoncho Newsgroups: gmane.emacs.devel Subject: Re: Eager garbage collection Date: Wed, 18 Nov 2020 20:00:02 +0200 Message-ID: References: <87ft5akkjv.fsf@catern.com> <835z65tg48.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000018e7ce05b46562ac" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26731"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@catern.com, Stefan Monnier , emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 18 19:09:30 2020 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 1kfRtZ-0006rJ-KA for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 19:09:29 +0100 Original-Received: from localhost ([::1]:38666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfRtY-0007F9-LE for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 13:09:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfRkp-0002Df-Kr for emacs-devel@gnu.org; Wed, 18 Nov 2020 13:00:33 -0500 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:44732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfRkf-0007lR-Lx; Wed, 18 Nov 2020 13:00:27 -0500 Original-Received: by mail-lf1-x131.google.com with SMTP id r9so4223912lfn.11; Wed, 18 Nov 2020 10:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8G8XQHOZpKQAShovapBPLH3gqrE+FAvBUyp7e/w6wbQ=; b=uUsu89L2lKureOk/bCtI0sD5PPMD9oRQvGKA6UltWTKp8o8TiBRgO4ThvUE2SoSvRI kE+ye8qaRuHAFLICSjOXNCJYOOE5vqW7SBMEbh0gbx5YK83mVpUS2D4HbKEULnoSizwc Q/004pt+zW4gycWLjdWjDV7idnQMOlWrqAFcBICyf8QkkTSsjGuZY2F1yNXaj9nTHJne xGDn2C9cvPms9wIbwGcS8sc+TadMzzWkhf3TMs6olrL05CPFVs6vb7yDSAFU3+C1y+Hi fuO6KXe3Vnqj9YCzaHg/jIUz/mkkTL/r7CZytp6lGibnffpESaT5EO8tQhhCQp/XL33m 3rGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8G8XQHOZpKQAShovapBPLH3gqrE+FAvBUyp7e/w6wbQ=; b=dFn4ZwfF8YsS10QSmbr8LV9vyy3Z3rgER/UvaHr4TQzr9WYPQXsd6G+9vRqxiDJMcw zHfJyCjC5UJcKL+6ARk6kkWfQCsu65/dvLzQYHLOYlrumcdsgA8/aEoCBsNc/hacBPYD bWvNq1g9IiVRHX/+cWuOnyRDj0qqac7DabRzSzzyAVxoK/V1/BCPTAAVKcNvtGMziqZu qm1z33wTQceNBzYp8mu2jwi4ISjb4B1TdmuymhCsgewdBzBUdNi5zfvknoeZ7YusQhjf dBSsX5bwozR5YBlnwTx6UweHqJTEZuzQz4CQ69lYYU/LTaifZYf868MHw/VffDtE62S+ 8ovA== X-Gm-Message-State: AOAM5328N/gFsAUlH3TFwup+grKw7BYn1d79bW3ewxZly8P0p2GkXaGZ 3hImRgc2pxiX14wWGZjqZFLDwaOYJjBKAXqv94DSwflCfRM= X-Google-Smtp-Source: ABdhPJxF4oBjFBwXi/lk9Qnzc1h9Ja7QbRUH10fbKpBGGMeGdRBjsMk+Mirq51WuzZfMons+eOViQprTp8NavqbjUBw= X-Received: by 2002:a19:7fcd:: with SMTP id a196mr4025067lfd.53.1605722414045; Wed, 18 Nov 2020 10:00:14 -0800 (PST) In-Reply-To: <835z65tg48.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=yyoncho@gmail.com; helo=mail-lf1-x131.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, HTML_MESSAGE=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.23 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:259373 Archived-At: --00000000000018e7ce05b46562ac Content-Type: text/plain; charset="UTF-8" > > Starting GC immediately when Emacs becomes idle will degrade > responsiveness if there's a lot of garbage, because once GC starts, it > runs to completion no matter what. > IMHO it will be interesting to test how emacs will behave if the GC process is changed to allow running a mode in which it will stop in the event of user input. It can be used for on-idle garbage collection. --00000000000018e7ce05b46562ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Starting GC immediately when Emacs becomes idle will deg= rade
responsiveness if there's a lot of garbage, because once GC starts, it<= br> runs to completion no matter what.

IMHO= it will be interesting to test how emacs will behave if the GC process is = changed to allow
running a mode in which it will stop in the even= t of user input. It can be used for on-idle garbage
collection.= =C2=A0
=C2=A0
=C2=A0
--00000000000018e7ce05b46562ac--