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: Concurrency via isolated process/thread Date: Tue, 18 Jul 2023 13:39:31 +0800 Message-ID: <874jm17p7w.fsf@yahoo.com> References: <871qhnr4ty.fsf@localhost> <87pm57p57m.fsf@yahoo.com> <83mt0bjdh5.fsf@gnu.org> <03724893-5b8e-2df5-6001-f2616c8f5c1c@hugot.nl> <87r0p53i58.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10039"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Hugo Thunnissen , Eli Zaretskii , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 18 07:40:54 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 1qLdS9-0002P1-Aw for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jul 2023 07:40:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLdRA-0006Ji-LB; Tue, 18 Jul 2023 01:39:52 -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 1qLdR4-0006JO-Lb for emacs-devel@gnu.org; Tue, 18 Jul 2023 01:39:46 -0400 Original-Received: from sonic313-10.consmr.mail.ne1.yahoo.com ([66.163.185.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qLdR0-0007SB-8O for emacs-devel@gnu.org; Tue, 18 Jul 2023 01:39:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689658779; bh=6HdBz3+r9P8G0dCOPTQ9aen9tUaG9HfyMK7gb5rVP1w=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=qZvKbN/UNWotcxZfzHkHoaw6HlWwkLoBKnQ87DZpxliFOXuTt50wzVKt7XVccQlWpVNRth2eH8bpHmKAxyaXTBLeFQLFjfPtXmokjrbUnfOU6bbehDPlCDksCUkxYVHX7FG/CuxC1pm8BmDlC9EHosjhGTjruGOSEW4uFFN/M8gLwtIUVZLhMZ46w4DM5iPmiqphkDNkkWPijpEcw1xOeiA2iZv8S9G2JsIFEn7QdlNANYjTekqa88SL/kFLkZyRyHSU47ObzgIej3wUrJdqrXxq9nFbkv5/rMkn/2DUddIJ8vyC0oqyqj2l+0OX190imf3PRMzt5DNBvE81RnfnfA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689658779; bh=QJ+Evvei0eqvBhxOFkoJmjhCTAr3SkSeq02o+ZON2RN=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ORipU4wdrXoar3Z8OnqthCt/r+Zthz7msN2a4BpZmfvHv1Wd39UAVhnw3+a1PtMFxtMIRWM8zTvTdfX6Q/uK0yjj7MXPZSAlkTmRiVAFjL4shsqz/F7bP4tkbK3NuTR/sT5D5LkyGqPiDP2x5PG9OKDqL0Ibb4dex369BkmG0JseewE6+i2gV9QuSexvE5pIO7XRINwFaWs0R8a58CWDnPinaHAHlD3ar/Tx6upVmTNnRkkQdU5SNjt9sZA8zbmVCMSOyAn65hjT0ANqjX98hRlh+Nx33KU+u+51C99gHzjbGBCykQ8OUwc/cwAH63mR+8Kf5COdvqp705YYVL+VcA== X-YMail-OSG: aFT.DnEVM1ln7mFFCyvEuiIpHLtzcHHvE3EXSnr_76oKJsgZMcGZUftjZaYjTKN igYv7mTCPC_Xf_3K0I4jwOO5TaPxjIwt741IwY8oHOgYUoLn.xfYMzifoRb4sjo1jABtNS4C33L2 ng4Heuc_XunWMZDJ3EJSWTZuu2GffbyHUmtlC1HMG3jWiITQ5afYxOUL_OpSbKspEe0Q4NcbQ9mp 15HqwN.85.J1tLZdSBOvfCCvH8EVD4MxilSncijzjd4cPm1P_zc3o4Z2JFkoqvPXvh6Ce8b7GPAc FS4ODS4iyta1vYoTnjmZdjvfpGEIUsbgsRLzMFWXHsSFuRx7i0qNTKBUDzrXDT4ukufgQHe4WOMi X3mNWKPvzB.jGDL7wS2mTibsZSq3ULvJe2LC7rorOlynuKlAjAaoWvMOpcIaDBaRJEBzBCXsYOtx CB1UJ5qdHLYwdoY04MRtxNSoMd3gkURuis2Lc8CQEbPQC8bQmMVMQp8F7ItYl4IpiCKhEnLtI9Vt Oh03QQzu9ttVd4GMKEl9OjKETHtQylgmyaaUOSAuQPxnHW18daplSoy_lXZ4vJZubeYisDh4ZdFF ntOQ9aohsZrSnEqTk0xRAJbUDYM7_eGgYOcMcRs.3Pa.lc4ePJFR7ebxDTQHxlWH1btRJefdgZdE fz8NRxt5RbqZmfJk6RA.9QaKGpyKktOJ.QmFL7..CSbwuM4xu0fzm510oE4R0HoxOe7nbdyLno5X WXleDrLtbagiNIdzs21axTrCn4iG_LPBdg.Al6vM.46HNKhsmExZ3gj31gyd5yXKgtGdOFnYblQM A_WyRJPArIMSohGhJSK8.vNWZawMC9U_PHfGw7CHCD X-Sonic-MF: X-Sonic-ID: ef4b764b-05eb-48bc-bd38-b61975f88f00 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Tue, 18 Jul 2023 05:39:39 +0000 Original-Received: by hermes--production-sg3-9dc5f54fc-65zvp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 453a387c7d264a7d5ffbf799df8df33f; Tue, 18 Jul 2023 05:39:36 +0000 (UTC) In-Reply-To: <87r0p53i58.fsf@localhost> (Ihor Radchenko's message of "Tue, 18 Jul 2023 05:25:55 +0000") X-Mailer: WebService/1.1.21647 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.33; envelope-from=luangruo@yahoo.com; helo=sonic313-10.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, T_SCC_BODY_TEXT_LINE=-0.01 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:307945 Archived-At: Ihor Radchenko writes: > Also, did you actually profile your use case? I actually doubt that > reading file takes a long time on modern systems. In my previous tests, > I tried to open multiple tens of thousands files using > > (let ((buffer (get-buffer-create " *Processing*"))) > (with-current-buffer buffer > (let (buffer-undo-list t) > (dolist (f files) > (insert-file-contents f nil nil nil 'replace) > (do-staff))))) > > And it was very, very fast. Now do this over NFS, and see how much slower it becomes.