It's not possible to create Path
s allocation-free
#18372
Labels
I-slow
Issue: Problems and improvements with respect to performance of generated code.
Path
object to pass toFile::open
statically, it's always a runtime allocation.File::open
takes aPath
object as reference, although it only clones it afterwards.Solutions to this would include creating a
Path
DST object (possibly combined with aPathVec
which can grow dynamically).The text was updated successfully, but these errors were encountered: