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: Fri, 07 Jul 2023 08:27:34 +0800 Message-ID: <87mt08in0p.fsf@yahoo.com> References: <871qhnr4ty.fsf@localhost> <83v8ezk3cj.fsf@gnu.org> <87v8ezpov0.fsf@localhost> <83r0pnk2az.fsf@gnu.org> <87pm57pns8.fsf@localhost> <87lefvp55t.fsf@yahoo.com> <87sfa28ura.fsf@localhost> <87cz16o8vz.fsf@yahoo.com> <87jzve8r4m.fsf@localhost> <871qhmo5nv.fsf@yahoo.com> <87bkgq8p5t.fsf@localhost> <831qhmjwk0.fsf@gnu.org> <875y6y8nlr.fsf@localhost> <87h6qhnalc.fsf@yahoo.com> <87ilax71wo.fsf@localhost> <831qhli14t.fsf@gnu.org> <87wmzdxewc.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="9470"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 07 02:28:20 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 1qHZKc-0002HZ-Py for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jul 2023 02:28:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHZKG-00080M-2x; Thu, 06 Jul 2023 20:27:56 -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 1qHZKD-0007zt-Hy for emacs-devel@gnu.org; Thu, 06 Jul 2023 20:27:53 -0400 Original-Received: from sonic314-21.consmr.mail.ne1.yahoo.com ([66.163.189.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHZK9-0006TH-EL for emacs-devel@gnu.org; Thu, 06 Jul 2023 20:27:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688689666; bh=WwA/u8nfYR/0G6EGfEqEESyLijMc0k8AHqlIyiKSLEs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=hm6JJz/aWeYcJshNwPJ3k+UvUr0shhi3HhTz4mlsrUAKDCImnC1HrxrNoHqNd0s6SaVfZ/KvkrS56vhlW1qqn/OHo4jA0dVNJekUIHvpShsQH7jMLIARbmuAMwBECA5owWk9xKs/fwaXy6ZR8Kaz1wo16DwuiduC7PauvYelpVuEiA3T66KyY++BDGAgHeOXlfboj8mUOf8X37iMxVLgPISSXnPXPjc7l8X0BTlbdrMDSB93TJU34cML8zxtJpwbBxmCmoVvpiclKW4Z11NdMj0dZuJyoJOjZehICSB5moUqUJaG4huG0MLjQCOsQRTxUmKaQRRh8TBcxTtNv12gag== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688689666; bh=2i/2Tm2U4j8yu1eyoOEbuf3toWsH1QTH3eomk25ZkZg=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=bJFfC8rx10M9Ahlp+yInResFxhG72KTi1jnYVM8JwRLlSaVY3dL/fEBUsB3LIsg67bJtiXyxbs8cOGCKwrWxpkgOcwlyWFD+sdUvX9WKi3a6o3AnqA0MOK1psslhuh1RRzF2B0Om5Wn1CuDa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XBN.pNnmU_o_PUgKHlBfeZQ42_ X-Sonic-MF: X-Sonic-ID: ecedbe91-0a9b-4fa0-a6de-9a2867541fb9 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Fri, 7 Jul 2023 00:27:46 +0000 Original-Received: by hermes--production-sg3-67fd64777-9kgfz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d4f3eb695b075c6e24118f1358bb9044; Fri, 07 Jul 2023 00:27:39 +0000 (UTC) In-Reply-To: <87wmzdxewc.fsf@localhost> (Ihor Radchenko's message of "Thu, 06 Jul 2023 15:01:39 +0000") X-Mailer: WebService/1.1.21638 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.147; envelope-from=luangruo@yahoo.com; helo=sonic314-21.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=unavailable 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:307539 Archived-At: Ihor Radchenko writes: > 3.37% emacs emacs [.] allocate_vectorlike > 2.90% emacs emacs [.] buf_charpos_to_bytepos > 2.82% emacs emacs [.] find_interval Out of all those functions, I think only these three will require some form of interlocking. So assuming that the Org parser is being run concurrently, less than 10% of it will be unable to run simultaneously. Admittedly these ballpark estimates are somewhat contrived, but they're enough to get my point across.