Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121968 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 25799 invoked from network); 9 Dec 2023 09:40:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Dec 2023 09:40:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B25A6180035 for ; Sat, 9 Dec 2023 01:40:37 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 ; Sat, 9 Dec 2023 01:40:37 -0800 (PST) Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-67ad277a06bso17832136d6.1 for ; Sat, 09 Dec 2023 01:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702114822; x=1702719622; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=b3OlU9KGcV90bdHJ/CuY6rsy9nNvQ2T2siQo6QWEgqQ=; b=WY2EM/7qYjAX6BOqguosUCguB0yfYKrglTvRZkdJHPcZs8K8AFVjk4joiKD4ZXJFFu Wu08cvNiwWd1cbXoB5lM/pbiLpnmTb/IYWb+9A8eXRuOZFpb2bzxS1ckPUreiTxLsIau 3H+hj6OghkOuNuhKni7OAVeTDvXwY4vXzAA5EoUQd+FKN6zVb+Oc6He86nlCt1V/AxyW fkTDQ/7U2iCz3IBoVNFrGkDZlQt7qDwCuZiRwZ/L7FshceqdroPyAuIQMQ5yAXbpSY/t jg2Pm9XwNe8jWvG0hAIwEUsgQ9EoYS88yI4eu5s0CI6ByHaLtAdmv5dCGkwgVcKof/hw Jivw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702114822; x=1702719622; 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=b3OlU9KGcV90bdHJ/CuY6rsy9nNvQ2T2siQo6QWEgqQ=; b=R4zWSuYaaURbUFThY6x+tfe0gVE4ckeQ9J7NVBPKVK2Z4k/EdNyRZYAN+/xJ9jo6zk 9DwuznesIVqlyJKW0bLqv5nT8jbwdFUlqhvVLh2+WBokColhIELtkr0q5eK0I/M8iVG2 AAAEEFiFHRLnK8DUb9gAdhaIQT0HxAhVK4pbt9gsi2JOeWuOswY2JAj+mFmUqA5g1ggd GWtuI/kexmdB7o0/EogVl1lxMvOQcibASkg4lKB8VenN/AA85tBlV8HL6ogKBtwrhRZN d/lssXx1J1Zxh+HAMSx8r5ojxYqETB4P99Aj80CZRotwkR+4q3U4qT8QR/DOX5PUs+N5 xWMw== X-Gm-Message-State: AOJu0YzPHIXCcB470qt9tnF1mBOqZg4BddmYF7IeQBDRzMwBDhT8WIOd //i57fF4ENF76VH2CtsmFNOsy85miqzLk7KPqJc= X-Google-Smtp-Source: AGHT+IF/O/WDZuJ5a18Opx1FcI34zvLtPD7y18SDuYJSIopIvM/PxbRdCh31yRs8s6exmyZp6eUMLhZ9TCFYVoxAxFw= X-Received: by 2002:a05:6214:2d03:b0:67a:a721:cb1e with SMTP id mz3-20020a0562142d0300b0067aa721cb1emr1506396qvb.127.1702114822333; Sat, 09 Dec 2023 01:40:22 -0800 (PST) MIME-Version: 1.0 References: <8f4e3274-6489-4378-82db-fb4829770196@gmail.com> In-Reply-To: Date: Sat, 9 Dec 2023 09:40:10 +0000 Message-ID: To: Niels Dossche Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000005a4161060c107d8f" Subject: Re: [PHP-DEV] Filesystem path APIs From: devnexen@gmail.com (David CARLIER) --0000000000005a4161060c107d8f Content-Type: text/plain; charset="UTF-8" On Fri, 8 Dec 2023 at 16:10, Niels Dossche wrote: > Hi David > > On 08/12/2023 10:08, David CARLIER wrote: > > I think these would be great additions to PHP as working with paths > and files is a core part of any programming language. > > > > > > Seems like it, is there an argument to be made to, let's say, in the > performance side ? > > A native implementation is going to be faster than an implementation in > userspace. > However, I don't think that matters because the performance is likely > dominated by the I/O you do after constructing a path. > You'd need to construct a large number of paths before you notice anything > I guess. > > Cheers > Niels > Very true, so what would be the argument beside having those as "builtins" as opposed to external components ? --0000000000005a4161060c107d8f--