From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: pcase generates an unprintable expansion for a form in test erc--restore-initialize-priors Date: Fri, 31 May 2024 03:32:48 -0400 Message-ID: References: <87sey3awa5.fsf@web.de> <87mso84ogy.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10831"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , Michael Heerdegen via "Emacs development discussions." To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 31 09:33:37 2024 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 1sCwld-0002a2-2h for ged-emacs-devel@m.gmane-mx.org; Fri, 31 May 2024 09:33:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCwkx-0008Fi-96; Fri, 31 May 2024 03:32:55 -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 1sCwkt-0008Df-Gx for emacs-devel@gnu.org; Fri, 31 May 2024 03:32:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCwks-00049U-DG; Fri, 31 May 2024 03:32:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=mLK0HPgY+0HunWmBWXuywQUwc5hQ6BC13mlR1TB0KKU=; b=HChXjBAa4KTFVwhRHCrM 9rNDQ4efoUSV08OHh3+T/z0kCZtrhacWSS33hTAPLao27OY09MY6xFi3alXl8wqu5mJGFNaGcn5vy CqMFmj/qhPGwLztFvfYWZmB9LqsmZHTnAZzzDGGvyaJVJuTJvAgyyuDLPLHJLKu/WBIeV6bT3ixQM 0nK14Q6fwClxc0+6HolXpytv1SR9YIZZbmysmLlQ775eEp+AEaD1oUmSuEYk/TBiPh9m5fzbB2566 iWl+cu0LOFyyz6nfxlNFqMal97qEojQmrkK/sgse9kO0wTTZvvEa8Pk0cZ7gy+7J8aplYjPVcWiUt Arn70yr+s3NLPw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sCwkq-0002B0-Mj; Fri, 31 May 2024 03:32:50 -0400 In-Reply-To: (Stefan Monnier's message of "Thu, 30 May 2024 19:43:01 -0400") 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:319766 Archived-At: Stefan Monnier writes: >> I must admit however - I still wonder: Code and matched structures will >> be proper short-length lists most of the time - would it be possible and >> make sense to handle all list elements at the same recursion level >> instead of doing O(length) recursive descents? > > I think if you look at the bytecode you'll see it uses a lot less > stack space, so the problem is not as serious as it seems. True, just to mention that OTOH code running during bootstrap is impacted, native comp as you know is a pcase aficionado and in the past and in some of my experimental branches I encountered this limit. Andrea