Re: Filesystem path APIs

From: Date: Sat, 09 Dec 2023 09:40:10 +0000
Subject: Re: Filesystem path APIs
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-121968@lists.php.net to get a copy of this message
On Fri, 8 Dec 2023 at 16:10, Niels Dossche <dossche.niels@gmail.com> 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 ?

« previous php.internals (#121968) next »