|
tlx
|
SampleSort: Non-Recursive In-Place Sequential Sample Sort for Small Sorts. More...
#include <parallel_sample_sort.hpp>
Classes | |
| class | MKQSStep |
| class | SeqSampleSortStep |
| Stack of Recursive Sample Sort Steps. More... | |
Public Types | |
| typedef Context::key_type | key_type |
| typedef StringPtr::StringSet | StringSet |
| typedef BktSizeType | bktsize_type |
Public Member Functions | |
| PS5SmallsortJob (Context &ctx, PS5SortStep *pstep, const StringPtr &strptr, size_t depth) | |
| ~PS5SmallsortJob () | |
| void | run () |
| void | sort_sample_sort (const StringPtr &strptr, size_t depth) |
| void | sample_sort_free_work () |
| void | sort_mkqs_cache (const StringPtr &strptr, size_t depth) |
| void | mkqs_free_work () |
| void | substep_all_done () final |
| Pure virtual function called by substep when all substeps are done. More... | |
Public Member Functions inherited from PS5SortStep | |
| void | substep_notify_done () |
| Notify superstep that the currently substep is done. More... | |
Static Public Member Functions | |
| static int | cmp (const key_type &a, const key_type &b) |
| Stack of Recursive MKQS Steps. More... | |
| template<typename Type > | |
| static size_t | med3 (Type *A, size_t i, size_t j, size_t k) |
| static void | insertion_sort_cache_block (const StringPtr &strptr, key_type *cache) |
| Insertion sort the strings only based on the cached characters. More... | |
| template<bool CacheDirty> | |
| static void | insertion_sort_cache (const StringPtr &_strptr, key_type *cache, size_t depth) |
| Insertion sort, but use cached characters if possible. More... | |
Public Attributes | |
| Context & | ctx_ |
| PS5SortStep * | pstep_ |
| parent sort step More... | |
| StringPtr | strptr_ |
| size_t | depth_ |
| MultiTimer | mtimer_ |
| simple_vector< uint8_t > | bktcache_ |
| size_t | bktcache_size_ |
| size_t | ss_front_ |
| std::vector< SeqSampleSortStep > | ss_stack_ |
| size_t | ms_front_ |
| std::vector< MKQSStep > | ms_stack_ |
Additional Inherited Members | |
Protected Member Functions inherited from PS5SortStep | |
| PS5SortStep () | |
| virtual | ~PS5SortStep () |
| void | substep_add () |
| Register new substep. More... | |
SampleSort: Non-Recursive In-Place Sequential Sample Sort for Small Sorts.
Definition at line 291 of file parallel_sample_sort.hpp.
| typedef BktSizeType bktsize_type |
Definition at line 305 of file parallel_sample_sort.hpp.
| typedef Context::key_type key_type |
Definition at line 303 of file parallel_sample_sort.hpp.
| typedef StringPtr::StringSet StringSet |
Definition at line 304 of file parallel_sample_sort.hpp.
|
inline |
Definition at line 307 of file parallel_sample_sort.hpp.
|
inline |
Definition at line 315 of file parallel_sample_sort.hpp.
Stack of Recursive MKQS Steps.
Definition at line 647 of file parallel_sample_sort.hpp.
|
inlinestatic |
Insertion sort, but use cached characters if possible.
Definition at line 691 of file parallel_sample_sort.hpp.
Insertion sort the strings only based on the cached characters.
Definition at line 670 of file parallel_sample_sort.hpp.
|
inlinestatic |
Definition at line 653 of file parallel_sample_sort.hpp.
|
inline |
Definition at line 1016 of file parallel_sample_sort.hpp.
|
inline |
Definition at line 323 of file parallel_sample_sort.hpp.
|
inline |
Definition at line 563 of file parallel_sample_sort.hpp.
|
inline |
Definition at line 898 of file parallel_sample_sort.hpp.
|
inline |
Definition at line 444 of file parallel_sample_sort.hpp.
|
inlinefinalvirtual |
Pure virtual function called by substep when all substeps are done.
Implements PS5SortStep.
Definition at line 1070 of file parallel_sample_sort.hpp.
| simple_vector<uint8_t> bktcache_ |
Definition at line 320 of file parallel_sample_sort.hpp.
| size_t bktcache_size_ |
Definition at line 321 of file parallel_sample_sort.hpp.
| Context& ctx_ |
Definition at line 294 of file parallel_sample_sort.hpp.
| size_t depth_ |
Definition at line 300 of file parallel_sample_sort.hpp.
| size_t ms_front_ |
Definition at line 895 of file parallel_sample_sort.hpp.
| std::vector<MKQSStep> ms_stack_ |
Definition at line 896 of file parallel_sample_sort.hpp.
| MultiTimer mtimer_ |
Definition at line 301 of file parallel_sample_sort.hpp.
| PS5SortStep* pstep_ |
parent sort step
Definition at line 297 of file parallel_sample_sort.hpp.
| size_t ss_front_ |
Definition at line 441 of file parallel_sample_sort.hpp.
| std::vector<SeqSampleSortStep> ss_stack_ |
Definition at line 442 of file parallel_sample_sort.hpp.
| StringPtr strptr_ |
Definition at line 299 of file parallel_sample_sort.hpp.