Skip to content

Commit 3e06374

Browse files
committed
parent: use intrinsic by default for 10x speedup
1 parent 32ad148 commit 3e06374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+stdlib/parent.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
p = string(java.io.File(p).getParent());
1212
else
1313
% have to drop_slash on input to get expected parent path
14-
p = strip(p, "right", "/");
14+
p = strip(stdlib.posix(p), "right", "/");
1515
[p, ~, ~] = fileparts(p);
1616
end
1717

0 commit comments

Comments
 (0)