Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124545 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 738191A00B7 for ; Mon, 22 Jul 2024 11:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721648470; bh=PSnY8q1iWme5YhzM+ahjhZNIloD1A2NtT69uKXVzxzM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KCHuYDTEWphTiZ+U+thELq+7UuP/XPXUGLp3TG/CoMrsaoBRtVHyzB+6NNpjC2sP5 O1dGDeQG8v1jVERNgiDx3NB+QNlCVfx9bjfUcVH742a/Eg2VhcVQ1R+29I2a7G5nwN BRJ+pwGAGRQg7hj19PiA7WfKzsnj9ktU517ssNrpuU/tPthOXuvvkySDv3UT07Iaae yxn7rspO+yhqetdfQRjhx/mzE1gA2r1w348jMkyh+TZgsjLIKgtL8MHSmDzxuZQ70q CnvYveI3TyHtkn+JrFTkZk72RCFUhezmS+WZbDIhx/5CioJhvOXXbLZdR6/eHNe8Kt yBeydzDiyAIzQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9EF7318002E for ; Mon, 22 Jul 2024 11:41:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_50,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 22 Jul 2024 11:41:09 +0000 (UTC) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-260f4c9dfe2so1896238fac.0 for ; Mon, 22 Jul 2024 04:39:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721648375; x=1722253175; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PSnY8q1iWme5YhzM+ahjhZNIloD1A2NtT69uKXVzxzM=; b=s04Vb5M84st/QYEWq7WAsW4lM3xhpquQBuRL1aUjC+PfUfETtnc7s2AnygyQFRQ3Eb yxn+0bbXVmqxRyqCdqd0aLmhQrgxOoKPKsGuoUS3yRx/stklkiYDG99iOj0YSIz6AvKF P2jeZO1YlWaqi71zzQCNUCHzlmu35IVAPvUlypRMZDKwK4f7lXQv7ztMpmp5Mr8Z2X/f RXImSMnJrxPzyzH7en3nyYHmQPZEMFeKe/pTYH+1ERmX+WE7hQoEPjmcqIf12sasdPXe d93MqrPMtFWXNYPxmyQJUMSIDjFAOjlFBpms8/mpRtDrrQXUzdGv2KrbYX0+xHbWjORl yKhA== X-Gm-Message-State: AOJu0YwqH+tw+/5CeH4o91YEzzSwm6AG1dg4loIcVZHqKa4L2uayUNmJ Hvj+WyPppPFy0vQfnHCcaN2/RyczQH+5qOaObPXkNi9dtpmGrweQCoL5f5gdy+r4PIRoee47/Ft fb5V4jKLSbiOmouDmJyMAjhGRZq4= X-Google-Smtp-Source: AGHT+IGX625Se9tgeHWun2FLod6u2wL/EO2EKMVpERNj1yb7TGRB9UrvzUuvE5TQHfK7kyenQ4hq7+0zYe6hsTIfEiY= X-Received: by 2002:a05:6870:b401:b0:260:24b0:5a21 with SMTP id 586e51a60fabf-26121b1ee0amr3736501fac.1.1721648375278; Mon, 22 Jul 2024 04:39:35 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 22 Jul 2024 12:39:24 +0100 Message-ID: Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 To: "Gina P. Banyard" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000d635cf061dd47f35" From: bukka@php.net (Jakub Zelenka) --000000000000d635cf061dd47f35 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 22, 2024 at 11:59=E2=80=AFAM Jakub Zelenka wrot= e: > I think we should also keep file_put_contents array argument as it might > actually be used with iovec in the future which could be a significant > optimization - need to check details if that would work but if it does, i= t > could be a pretty good optimization. > I had a bit closer look on this one and it should be possible to optimize it for some cases. We could basically introduce something like php_stream_writev. It would need to have logic to do the same sort concatenation if filters used or for stream wrappers not supporting iovec. But for plain wrapper, we should be able to support it and it could be a good optimization for some users and a way how to cleanly expose it. So I would suggest to remove this from this list as there seems to be a good use case for this functionality. Regards Jakub --000000000000d635cf061dd47f35 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jul 22, 2024 at 11:59=E2=80=AFAM = Jakub Zelenka <bukka@php.net> wr= ote:
I think we= should also keep=C2=A0file_put_contents array argument as it might actuall= y be used with iovec in the future which could be a significant optimizatio= n - need to check details if that would work but if it does, it could be a = pretty good optimization.

I had a bit closer look on this one and it should be possible to optimize = it for some cases. We could basically introduce something like php_stream_w= ritev. It would need to have logic to do the same sort concatenation if fil= ters used or for stream wrappers not supporting iovec. But for plain wrappe= r, we should be able to support it and it could be a good optimization for = some users and a way how to cleanly expose it. So I would suggest to remove= this from this list as there seems to be a good use case for this function= ality.

Regards

Jakub
--000000000000d635cf061dd47f35--