summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2015-05-14 10:46:20 +0000
committerjilles <jilles@FreeBSD.org>2015-05-14 10:46:20 +0000
commitc595c29b97d1612345ea0c0d3454e779ece9d23e (patch)
tree74ec94a519a2ff1ef23088a25c109bd0ce4e03ef /contrib/llvm/tools/clang/lib/Sema/SemaCodeComplete.cpp
parentf5235a5f5fc4a163052e895dec17dd5715a4ce6a (diff)
downloadFreeBSD-src-c595c29b97d1612345ea0c0d3454e779ece9d23e.zip
FreeBSD-src-c595c29b97d1612345ea0c0d3454e779ece9d23e.tar.gz
MFC r282482: cp: Remove fts sorting.
In an attempt to improve performance, cp reordered directories first (although the comment says directories last). This is not effective with new UFS layout policies. The sorting reorders multiple arguments passed to cp, which may be undesirable. Additionally, the comparison function does not induce a total order. Per POSIX, this causes undefined behaviour in qsort(). NetBSD removed the sorting in 2009. On filesystems that return directory entries in hash/btree order, sorting by d_fileno before statting improves performance on large directories. However, this can only be implemented in fts(3). PR: 53475 Reviewed by: bde (in 2004)
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud