From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 41BBB1F405 for ; Fri, 2 Feb 2024 23:25:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1706916300; bh=4UaqwCXyToUil6ACL/tB2BmNq/BpGQkMxrp/llbM8jA=; h=Date:From:To:Subject:From; b=B/zNl9BGQhBcZnzy96U93xoeTG85k1wdKHENBU4xmXUDOnj+87ePsFWxHTbTW9uir dMZAGqbrt47ZYNGLbvgYLYFnFOcx/do0C16fVjQgmvmPHBDlq9ZV09emWdanWrB6Ir 5oQjkLmPoCMoFncw6aJSvIBOQGJtd02pVxnYQ3B8= Date: Fri, 2 Feb 2024 23:25:00 +0000 From: Eric Wong To: meta@public-inbox.org Subject: RFH: bash completion performance Message-ID: <20240202232500.M134686@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline List-Id: I noticed bash completion for lei gets really slow with gigantic candidate lists. It's not lei's fault, rather bash being inefficient when fed a gigantic list: https://marc.info/?i=20240110052801.M32409@dcvr Chet (bash maintainer) gave a detailed reply here which I haven't had time to act on: https://marc.info/?i=9ef19570-ac1b-47d4-8e8b-aca69f958327@case.edu I've already got a lot on my plate in public-inbox itself, so hopefully another C hacker here can optimize it for us. (I figure there's more people proficient with C reading this inbox than there are with Perl, maybe I'm wrong...)