From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 624BF385841F for ; Tue, 4 Oct 2022 11:38:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 624BF385841F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664883491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hNYKid4BWFSp0bM5SLqe8eSjRp5TVknJwvPnh0+cs9U=; b=M15pyKyYDNzSHV+bG2XpfHwJe23SlCiNmmRnOnZJNZjxYJ5wRHg6QZT/ncqHAZHvFHYZHd NjcqeKSoD+BqzPGME/gVvOj9phYbq2gKhuWoC4sj69nuBcLJxB7kwbNW1coAoMTUkyGjtg RrcQ0Pw02lj174cI9mhKY0VkwrLTp4Q= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-112-hSV5ICx2NduvBSH8MKXr9g-1; Tue, 04 Oct 2022 07:38:10 -0400 X-MC-Unique: hSV5ICx2NduvBSH8MKXr9g-1 Received: by mail-qv1-f70.google.com with SMTP id q6-20020a0cf5c6000000b004b1999f94bcso2565709qvm.15 for ; Tue, 04 Oct 2022 04:38:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=hNYKid4BWFSp0bM5SLqe8eSjRp5TVknJwvPnh0+cs9U=; b=bWjrALtEErasVH89w1cBhe7iuZ+ikZNvJvbNpj/OxkQpIuhsuWuf5Ij2vZpKHv/yH2 tT4DsZUfiAE/l0k4PRbi6iDjUQZHZ7tT7iXJuPLeT9WfTfHUuSx+cdCvi7gyvh7wLkli qcBN96ec0aBRAF990RfionBR53njxywNBjMhGiTkZOHh4MGnOjyPvDUbTmTkyYmUTlJV a/cDiVfF+S2PnaqxmkYH4crC1hoEie3MFE3pt1ifdDR12ews57geN3P8zA7WPiFcE2Pq Sc9zTIrHMvkOra31fQn3St+u3q/3ISsgkoPTOznmgji8ThaGb7LH66OVd5Tc47sAG5sh XFvw== X-Gm-Message-State: ACrzQf161gjeyAzW5mvTE+ntB3a7z2MQE/qi66GLOTyNPU8XxMauMEua RF9MW8uXj32YyBHlTvZpbp0F8ywtWHBxdA1+ksu8W424ZN/1P7BIKvUaYKI4NwQQ27qFrQRHILL 2QKOgCsM15agreARVsempoMZ1QSrF5Cw= X-Received: by 2002:a05:620a:4483:b0:6ce:8e57:254b with SMTP id x3-20020a05620a448300b006ce8e57254bmr16301729qkp.540.1664883489604; Tue, 04 Oct 2022 04:38:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4lETraZyLP/Tp+ESoeZ9gpGUFfHH32iHadmGGbmy6CKq4jTBHBb3uqmAHHPOj8eOUg9TelaSGnoFdvoa2YnnY= X-Received: by 2002:a05:620a:4483:b0:6ce:8e57:254b with SMTP id x3-20020a05620a448300b006ce8e57254bmr16301721qkp.540.1664883489423; Tue, 04 Oct 2022 04:38:09 -0700 (PDT) MIME-Version: 1.0 References: <20221004011115.2009591-1-ppalka@redhat.com> In-Reply-To: <20221004011115.2009591-1-ppalka@redhat.com> From: Jonathan Wakely Date: Tue, 4 Oct 2022 12:37:58 +0100 Message-ID: Subject: Re: [PATCH] libstdc++: Implement ranges::join_with_view from P2441R2 To: Patrick Palka Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 4 Oct 2022 at 02:11, Patrick Palka via Libstdc++ wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? FWIW using OK, thanks. > variant<_PatternIter, _InnerIter> in the implementation means we need to > include from , which increases the preprocessed size > of by 3% (51.5k vs 53k). I suppose that's an acceptable cost? Yeah, I don't think we want to reimplement a lightweight std::variant, because that would just add even more code. As I mentioned on IRC, maybe we could optimize the compilation time for some of the visitation using P2637R0, but that can be done later.