From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Async rebuild package-quickstart after packages update? was Re: 28.0.50; Proposal: slightly more efficient package-quickstart.el Date: Wed, 4 Aug 2021 07:20:49 -0700 Message-ID: <24842.41537.969310.87574@retriever.mtv.corp.google.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28496"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, arthur.miller@live.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 Aug 04 16:21:48 2021 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 1mBHmG-0007AG-7G for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 16:21:48 +0200 Original-Received: from localhost ([::1]:41240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBHmE-0000hs-P2 for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 10:21:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBHlV-0008MN-L5 for emacs-devel@gnu.org; Wed, 04 Aug 2021 10:21:01 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:42520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBHlU-0006nQ-3V for emacs-devel@gnu.org; Wed, 04 Aug 2021 10:21:01 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id t3so3134137plg.9 for ; Wed, 04 Aug 2021 07:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=YDvIUsUod1EXyArSGh8dsXbIxJm6B30WniuT37HnFz4=; b=IA1iYyJ7QyV/prMtwnJHx5hTdxpynLiUkOVeWJRcjYxsPvQcRkBRIGQ2+ZkbSAYIIW iQ/18a5VIEobPbBhu8F0fJ01IL5bI5BkdCmjKH1Di9DWQAw8Du0/F4D5F3zgoCmNfdRN jRZy4neODlGXTZnRPLc/epUWxfFICwA3CPxgDZ/nsoTb0l/tk9M87/zC95g5y9FzA41E KuKE66D9Ahv0FTK/YavmFRS84avbJLz56ZZjhLQ2N0JIidQhPo/6l761dg3dPYM92yFj /VpIGtvklsLqfmBwrqbk+WfGGnae48Zk5XM0VdplTlnxnDlKFiQ0dgkVNxZst4zOJ1lT nNZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=YDvIUsUod1EXyArSGh8dsXbIxJm6B30WniuT37HnFz4=; b=sQAP2h7tkICeMUuAnGD7gPakrBiz8N8NeduXKxCOTcVmuYq83hHZI2YVzFBi++IReb pJEZIu94m5YwgPLQ7Rxx1Rq6whWmxYjE7IuZ7PnWTH8YE9YLmf1Hw0xuvjCTQApTs1lm bizTkL3wZtmAUzY0lxzPfm8toNx0hDTFgqlpwpg15glz3ZQcTGQZeAm31PHYKVDngsxa OXVL/dZ8LvI/AzrhldThpQc01aZ2mfx1QVkYi6Yvc52gQ0b6HbsJu4Ysvn/f+486uyFG r6KnBwDxJ/pYYR93gzXAGB4LqjznfJG8wsZFq5W6J6f7E7TtHhdjuTq08Jwub4ij/FaD 5aOw== X-Gm-Message-State: AOAM530m+LcdvN+zpPI8rwwkevqaC2ZbwZC2B/NHhULML9hv9+tz1chE d5KiMCbAQFNUbwMeRerT7MSkqH4+WfFKGQ== X-Google-Smtp-Source: ABdhPJy77j3cTSHLUW8o8a6t0MQ6KkKR0lMq0G4X2OAYpfogFVifOo2/SNSPpAzS+TYoOVUr1RsnTw== X-Received: by 2002:a17:90b:20b:: with SMTP id fy11mr9877568pjb.79.1628086857833; Wed, 04 Aug 2021 07:20:57 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([2620:0:1000:1510:e8d5:bba0:8977:82a2]) by smtp.gmail.com with ESMTPSA id x7sm2998641pfn.70.2021.08.04.07.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 07:20:56 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 28.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=raman@google.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -176 X-Spam_score: -17.7 X-Spam_bar: ----------------- X-Spam_report: (-17.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-0.132, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:272044 Archived-At: Interesting:-) Other discussons on emacs-devel have declared that make-thread should never be used if the async call expects user-input -- so combining both conclusions, we might as well declare make-thread useless Stefan Monnier writes: > T.V Raman [2021-08-03 19:24:59] wrote: > > Stefan Monnier writes: > > So looking at package.el: > > package-quickstart-refresh is called from > > package--quickstart-maybe-refresh and looking at the code in > > package-quickstart-refresh, it does not block on user input, so it= may > > just be sufficient to change the call to package-quickstart-refres= h > > to (make-thread #'package-quickstart-refresh) -- > > Thoughts=3F >=20 > The fact that it doesn't block on user input makes `make-thread` fai= rly > useless, I'm afraid. >=20 >=20 > Stefan --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =E2=99=89 Id: kg:/m/0285kf1 =F0=9F=A6=AE -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮