diff options
author | Eric Blake <eblake@redhat.com> | 2012-03-14 13:42:59 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-03-15 13:28:19 -0600 |
commit | be17e3b98a178ea6e2c973bf49282f11f7060353 (patch) | |
tree | fc13d79392e4c5e416a9838b33c6f8f5e14f2d1a /tests/misc/sort-discrim | |
parent | 9f5aa4850133976eee22dcc0b506d7b632cd674c (diff) | |
download | coreutils-be17e3b98a178ea6e2c973bf49282f11f7060353.tar.xz |
realpath: optimize --relative-base usage
There is no need to recompute for every path being visited whether
the base is a prefix of the relative location.
* src/realpath.c (relpath): Hoist base check...
(main): ...here.
Based on a suggestion by Pádraig Brady.
Diffstat (limited to 'tests/misc/sort-discrim')
0 files changed, 0 insertions, 0 deletions