From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alexander Miller Newsgroups: gmane.emacs.devel Subject: Re: Questions about throw-on-input Date: Wed, 13 May 2020 00:33:01 +0200 Message-ID: <8920fe6a-8fe4-addd-c29e-2213850bf974@web.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="88821"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: eliz@gnu.org, yyoncho@gmail.com, emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 13 00:35:44 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 1jYdV2-000N0C-9H for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 00:35:44 +0200 Original-Received: from localhost ([::1]:44580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYdV1-0001tl-5T for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 18:35:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYdSE-0001Gc-T9 for emacs-devel@gnu.org; Tue, 12 May 2020 18:32:50 -0400 Original-Received: from mout.web.de ([217.72.192.78]:41169) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYdSD-0000i1-Q0; Tue, 12 May 2020 18:32:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1589322764; bh=y9qlbKKGONOdj7uKXliNINUls/UQFd+/wM6aQeXbVQk=; h=X-UI-Sender-Class:To:Cc:Subject:In-Reply-To:From:Date; b=TKOW56qMoKFhtbNMtZC5Eyqi/oPHvPOJC4eGwMu3/Ye0PWmn+2Q5vn0tY6I1vTGVc 5OC2of9fXzSTnOx0ZCxIjx9RJAein9UWy4gZDXbpMf0bU5jURuPgoQ3lpkYUdGZFFu Y0NfQ53r/f1wRAyFLVm0T5kKxBeBH3/LDDVJk5DM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from [192.168.2.107] ([217.240.190.124]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MA5v3-1jNKvF0WZl-00BMrs; Wed, 13 May 2020 00:32:44 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:1khRWc6ADnUidLRpkdZmD5yJ0sB37u6bqK97trRm/c5VlqKKz5w FG1G1SLK7TSTd8p5n/LbraniYqPBox7GTtyjLzly7XJJuyluTpKqau1h43hKEpwbEoHLQN+ TI1nd38CZNJpXoT4IoGuMRgBGikHP8vYMtHu2LP6km9zny9HyjPaBFGIMTFHVkY5cunCO/f pVfhFtHF8LGO3CYFuYGXA== X-UI-Out-Filterresults: notjunk:1;V03:K0:b288DNUmLhw=:MKCJTn+i2icCbTlLwK3VOi X2RhTSu8IlwKKYpSwmpI7kZWHNaibOYVyklMGea1pBeyj5BrfkJnhmbsjyie4KyBpS9iHJAEg mkGnckQnYjitBlgTVHM4Aj6b/sltT+UgHUUNzUMF0/495EY/ysocbYXQizz4z9WpTkSzViG1F J2O6JZBOfdcPlRWvYaAqZODjKuRw48JjTruNEzygOtKAN1/O2rWVT3JOBb58jX11ErtKnSA2B +H8hcBmhPYX2dBt2X2p9AzqfyJQXJPLWSKVLTHIDPwiXwWbSj/AVNXNrDkQYRoqMSzYeuDMUm 3OPJt/+q8SZBA8ks0Vq34VG8SPs8YqEf2Uv51GuALt6402tl+0u3wyNl5bTFm1eqOYD4t55Sl 5DMce1MvQzBreqWFdSxYZPT472MdHbzTO/CcROSjf4nRMpMUEeyjNNUd2BXA6AXtt5H5DDlpT g6v7SFo4oEvoS0kwbJ2hLvL8AbrsChDtN0peyIMJp1+JYeWAX+Rc2ykHqcABZeia1fszDMo1q X8qn5aewppoi/l8F4msPuUKMp+CSaIFERAWFCWxDSe+9+lnIJfsbDobdmo5GvEoJxiYIW+tFj 6+qsTvrPvUZhhRkz19NjWh3oU5yr3vbDgfLCeexKpvZT010i6oVO9bc9vgB6iilB9lHRegdMK U6ofWC8ZRaFkCZTOOfW6yzhUTU4YnrS+Ror1VIH1HPt9VePOh2lMlUvzgSeuqGK16EWidV96f 2oz4pI9SUzhva38tbn2b514shsowSnZlph/bhukRfPV5YjAl77dWSHoymbIGje8l7QNlSbdd Received-SPF: pass client-ip=217.72.192.78; envelope-from=alexanderm@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 18:32:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:250056 Archived-At: Here is the promised bug report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41220 > Right, but you were talking about a presumably longish-running > background job, so the startup should be "negligible". Ah, that was just the benchmark I made. I had to beef it up beyond the point of a common or even-worst case scenario because it needed to run long enough to feel how the thread performs. A much more realistic case is probably a death by a thousand cuts kind of deal: you have a package like treemacs needing to grab and display some new git info, and a dired buffer that needs reverting, and a git gutter that needs updating, and your mail package is refreshing its index, and your syntax checker's overlays need moving, and the language server is being very chatty, so when it takes your autocomplete popup 1 full second to appear you get inconvenienced. Not the end of the world, but a reason for people to think emacs is slow and bloated. In my ideal world all that stuff could be done non-blockingly in another thread as much as possible, only needing to surface to the main UI thread to make actual changes like inserting text/overlays/text properties.