From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Emacs design and architecture. How about copy-on-write? Date: Thu, 21 Sep 2023 10:53:52 +0800 Message-ID: <87v8c4qlrz.fsf@yahoo.com> References: <120e0e0f-c274-42e8-844d-4044fc8cd5d2@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1176"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: acm@muc.de, dmitry@gutov.dev, eliz@gnu.org, emacs-devel@gnu.org, incal@dataswamp.org, yantar92@posteo.net To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 21 04:55:07 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 1qj9qM-00006X-Kh for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Sep 2023 04:55:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj9pW-0005LB-DW; Wed, 20 Sep 2023 22:54:14 -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 1qj9pQ-0005L3-KH for emacs-devel@gnu.org; Wed, 20 Sep 2023 22:54:08 -0400 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qj9pO-0004k8-UB for emacs-devel@gnu.org; Wed, 20 Sep 2023 22:54:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695264844; bh=8KAK5uwOCPWx4E5aRaABGaI4o6K2l3npXWR6BWNJ4U0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=URMvnQz6eRVjiZnW8OpyqhDD55T7MEwIlDoQRqSmqE+xvu3hGhWQd7E6PeU6OFJ4RXROKefEG6hFyR73/OpXf6fiQuq455RVIfa1Fy5uxlURbbO2j679vNNI9+4vjcB2smegALLmLyEGERCZoW6tVU6M5YN7kGd5qoP/fyI2zBbtmmFfICVHX/8qHRmwEXeNBdlvWygydOZBrMoyc2cD9skY74O+30aG0rWAhcXoe51zv5O14v8pSkAYTXZrWfX9BTF3WIzXieZUaXLli2pm2HDq9002EAvp/gGIMQqMa5gsGqclFZBOHs+XV86ovBvliNwSToGCYn8njBhex9e32g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695264844; bh=J1HkubilaGUfKilL2kjgcO/9rD5LPCL5+GoB72rhmko=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=E+v7i/UIrKF5fY9CDqtJWd2/OuT37bTtxIB5PaFFYYyslLMRCnxD8i2OVFSvKaqtY0yoTIuQcbxlAZLJ+0exJmQqJxp6X2iJ3vaWVoZnL6c1ghIdI8IH5gOM/UnThOdur0eJDPK9CmfCEoCSFDIcA4i++Yx3XQ2+5SiQpGCHfqDjjW1xQlRDwaWqJh8rGWiAaix2hzVm+uT3UynH7VTq7fsnY+g0XiKc09VIpDDWPjCKByqcdszdfLGXtGjEzHtWZ4iELGiRUjn8tA7sasLUsrDC2voUv+Ju8T4lddzwJPT4DaSxCZfLQATeDXLrox/PAYtAte66G8JwIRLcy8kY3w== X-YMail-OSG: dsmRqZoVM1mmbN0wLK4w103ljcbHx2idTw0j703GmcZpwtcqjOUwBj6lEpSxED4 sxD6K0InynXds_sVUUU9QYsXA0ZgHdpOJKEp_ifd4x5WyYfCc3B0spoVZeN6zRtkZ8xH0NjZTxZo MeeiURTCXNsLt9_37ofOXubx9.AM0axafBjWOUL7nOAfmsbZX048wQdyXB2p3hBx2rT5MlB3NNb2 Wo6I.jg_4f42eiRNaTTZJDH3zm4WqkYrq3QRCuhXY3jaD6VJDdJYXEIjBvB6vJ5_Uecu4krNcsP2 S0gWrA1Uz1tmesh9YzEEBr_UIxAABseOsbaMUGbQmqK7VLKx1nkeJhosJtino5PSlHHmtnkwOdQX QiIQfoLhFzXyG5hl5qqOa2KPZ5.2SLI4Bk2yi_3qUqftFUlDr6j7SfoybG4aSgKfAecgBqbz2lt1 PyTkedjeRGuWAaE1pZ9omLsSE_vTGEqMjsKbOdM.oTUnWGNmER_5.DbkBtDzbYQve9zGykk.sCr1 vOFpbbrB3JqMpmY67IFsC_eyGCgT9HYwxL0ruI1mQ_r39Z.LA01Qn2mNh8PQ84W5W1m16a6qkZCQ SDJrBfvSRZIcAk.a1.FhRAq.NvbrGI8r2X3orqsGIm2buBwm2rgTvZ6GQpi0c_eUuJUXunMuGIDE i51HlHtsSZjdDxsPtrwSo5QZ_FyyLQAp1w.Oth5JFbZlbyUukk4fspozptAD6k81tIOFwsH2uMAA teH0PiXnJzne1Tz6uV_eDb4_0yqk3802KTMGc0rfzU7TaUptQ1JxKn4S7tHsTTZutmsUCyNOr.9. Jb54GPu6QaT5BsI5cia5fsyN9cEZak.xd201X96eEh X-Sonic-MF: X-Sonic-ID: 7d95fcd7-b148-402b-83fd-04bed6025887 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Thu, 21 Sep 2023 02:54:04 +0000 Original-Received: by hermes--production-sg3-55c667b499-ll99j (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ef7508fd1db0b7b9b7169d261fe55283; Thu, 21 Sep 2023 02:53:58 +0000 (UTC) In-Reply-To: <120e0e0f-c274-42e8-844d-4044fc8cd5d2@alphapapa.net> (Adam Porter's message of "Wed, 20 Sep 2023 21:23:09 -0500") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.206; envelope-from=luangruo@yahoo.com; helo=sonic311-25.consmr.mail.ne1.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:310859 Archived-At: Adam Porter writes: > There would seem to be numerous scenarios in which a 60 FPS (or > higher) redraw rate would be desired, such as smooth scrolling > (i.e. pixel-by-pixel at a high speed), whether text or images are in > the buffer (especially if Emacs one day gains improved support for > images, i.e. displaying an image across lines of text without > splitting it into many smaller images). Pixel-by-pixel scrolling triggers redisplay optimizations, and Emacs is capable of equaling a 60 or 30 Hz display refresh rate when these optimizations are applied. This was measured when pixel-scroll-precision-mode was first written. > As well, as we all know, Emacs is much more than merely a text editor; > it's a platform upon which a variety of different applications are > run. All of which edit or present text. > Finally, attaining high redraw rates means leaving a large margin, > helping to maintain acceptable performance under heavier loads, ones > we may not anticipate at this time. > > So I think it's very much a worthwhile goal to be able to redraw at > 60+ FPS. I disagree. It is by far more important to run Lisp (such as Gnus, or JSON RPC decoding) in the background.