Commit 2d10f15
committed
file.c: dirname_n also use strrdirsep when n > 1
It's both simpler and faster.
| |compare-ruby|built-ruby|
|:------|-----------:|---------:|
|long | 3.960M| 24.072M|
| | -| 6.08x|
|short | 15.417M| 29.841M|
| | -| 1.94x|
|n_4 | 3.858M| 18.415M|
| | -| 4.77x|1 parent 990cf12 commit 2d10f15
2 files changed
Lines changed: 7 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5074 | 5074 | | |
5075 | 5075 | | |
5076 | 5076 | | |
5077 | | - | |
5078 | | - | |
5079 | 5077 | | |
5080 | 5078 | | |
5081 | 5079 | | |
| |||
5093 | 5091 | | |
5094 | 5092 | | |
5095 | 5093 | | |
5096 | | - | |
5097 | | - | |
5098 | | - | |
5099 | | - | |
5100 | | - | |
5101 | | - | |
5102 | | - | |
5103 | | - | |
5104 | | - | |
5105 | | - | |
5106 | | - | |
5107 | | - | |
5108 | | - | |
5109 | | - | |
5110 | | - | |
5111 | | - | |
5112 | | - | |
5113 | | - | |
5114 | | - | |
5115 | | - | |
5116 | | - | |
5117 | | - | |
5118 | | - | |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
| 5098 | + | |
5119 | 5099 | | |
5120 | | - | |
5121 | | - | |
5122 | | - | |
| 5100 | + | |
5123 | 5101 | | |
5124 | 5102 | | |
5125 | 5103 | | |
| |||
0 commit comments