summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/newbt.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-07-14 11:06:02 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-11-09 19:07:25 -0800
commitbd31e01a194a7a2bc34b010d114201d35121f09b (patch)
tree48d3e2eebf799543ad86d3c9e01ffdca8872935c /fs/xfs/scrub/newbt.h
parentde53333d8d107f84a4d29eed273fe098a2c91c7e (diff)
xfs: speed up xfarray sort by sorting xfile page contents directly
If all the records in an xfarray subset live within the same memory page, we can short-circuit even more quicksort recursion by mapping that page into the local CPU and using the kernel's heapsort function to sort the subset. On the author's computer, this reduces the runtime by another 15% on a 500,000 element array. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/newbt.h')
0 files changed, 0 insertions, 0 deletions