Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQtfn-0002lL-DC for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Aug 2022 16:56:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oQtfm-0004y8-7v for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Aug 2022 16:56:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQtfl-0004xz-Ul for pgsql-hackers@lists.postgresql.org; Wed, 24 Aug 2022 16:56:09 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oQtfj-0002JK-JB for pgsql-hackers@postgresql.org; Wed, 24 Aug 2022 16:56:08 +0000 Received: by mail-pg1-x52e.google.com with SMTP id bh13so15547324pgb.4 for ; Wed, 24 Aug 2022 09:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=aCP8aasdqJ+fmEuysY/b7qOUm7UGJ4jHX2DPxsN3o2U=; b=YSHzbnHPRvWliAlniD4DG0Q3AwwINnpIbFmYGmF/FVrLEEBR4TTTgHMpBAo5Uvej0d jvePljuQB1ic5a/Y/Vs5njosN7FX8YM9bNz8URXrb5zh57OX4lgAFV3BCLqgMYfzd852 3BUb6Nz9v+4+mRZc7YskexQrkN2eNVBGgQqKdDaZXUlpZL88+vBPmdKiESj4a4RiGBZl 4t6rniO+gYl8aO/BaaJ0VIZcNl6YEXU4ehlqcCs0d9r7fmS/pfC/cWGFbPC34EkhA9Iw vDOaKs4quH6AjqOktRCUTUOPeuJLYQKTt5+IacvjdsmNL2xUAyjzKjUy2nKoAaE4T+DJ G7Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=aCP8aasdqJ+fmEuysY/b7qOUm7UGJ4jHX2DPxsN3o2U=; b=gJ1MSY7EhGw5iiFQbXTm0TroiHh1Yxbrdp5U7lQrm1/W+bXAINf0GJXYvEq7l6vOih PHKE7MRSscs41KrHAz9Aot/Do2no2JVS6ejpGH4awAK331Du/e3lg4Kb1jR+kxSkbv0H WGlAOvuySjzWo5Tiv1BETIMlCoF9/v5rgrJHKX0YbK8d5J8U9NQRYaZN21pdJUr+Cm7r Q1tkHfuo1bhalccZlKDxvX1IRLzIe3SCLXWyiOmUH1jO2MAnaGXI6mcnSuukLqrYK6zF CXuCUNSQTv7Vw1CJGaO6lrAdRxy+vwXvJavpmxr7rZ9bXxJwRJPuaha69iOL7+ANc0MY KNBg== X-Gm-Message-State: ACgBeo0xeedY+hNikxtRJcILhFf03QlZN92p2GqKlX6/NpQmkajPwqzL +QZK8HbtRinPrFTXI5pNCs8= X-Google-Smtp-Source: AA6agR6hfV7Cjsy8E5/0mCahVp8B0WMSrDGkmfhhlej12rlr6s9svFVxSnaqWJh9NWsq1HwyNa4aQw== X-Received: by 2002:a65:6a83:0:b0:42b:344a:3546 with SMTP id q3-20020a656a83000000b0042b344a3546mr1535375pgu.612.1661360166528; Wed, 24 Aug 2022 09:56:06 -0700 (PDT) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id k15-20020aa79d0f000000b00536b8f91806sm6380023pfp.198.2022.08.24.09.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 09:56:06 -0700 (PDT) Date: Wed, 24 Aug 2022 09:56:03 -0700 From: Nathan Bossart To: John Naylor Cc: Andres Freund , Tom Lane , Jelte Fennema , "pgsql-hackers@postgresql.org" , Merlin Moncure , Andrew Dunstan , Stephen Frost Subject: Re: [PATCH] Optimize json_lex_string by batching character copying Message-ID: <20220824165603.GA1302810@nathanxps13> References: <20220815212304.GA251709@nathanxps13> <20220819204215.GA397534@nathanxps13> <20220821054733.GA780295@nathanxps13> <20220822212229.GA1129243@nathanxps13> <20220823033236.GA1204962@nathanxps13> <20220823171546.GA1207981@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 24, 2022 at 11:59:25AM +0700, John Naylor wrote: > It seems "scalar" would be a bad choice since it already means > (confusingly) operating on the least significant element of a vector. > I'm thinking of *_has and *_has_le, matching the already existing in > the earlier patch *_has_zero. That seems reasonable to me. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com