Help for this page

Select Code to Download


  1. or download this
    cd $HOME/local-boost
    wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/
    +boost_1_81_0_rc1.tar.gz.json
    wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/
    +boost_1_81_0_rc1.tar.gz
    tar -xzf boost_1_81_0_rc1.tar.gz
    
  2. or download this
    clang++ -o llil5vec-tbb -std=c++20 -Wall -O3 -I "$HOME/llil/cmdlinux/f
    +ast_io/include" -I "$HOME/local-boost/boost_1_81_0" -I "$HOME/local-o
    +neapi-tbb/oneapi-tbb-2021.7.0/include" -L "$HOME/local-oneapi-tbb/one
    +api-tbb-2021.7.0/lib" llil5vec-tbb.cpp -l tbb
    
  3. or download this
    block_indirect_sort.hpp:274:23: warning: implicit capture of ‘this’ vi
    +a ‘[=]’ is deprecated in C++20 [-Wdeprecated]
    
  4. or download this
    $ NUM_THREADS=6 ./llil4vec-tbb big1.txt big2.txt big3.txt >f.tmp
    llil4vec-tbb (fixed string length=6) start
    ...
    emplace set sort    time : 0.764016 secs
    write stdout        time : 0.51597 secs
    total               time : 1.95691 secs
    
  5. or download this
    $ NUM_THREADS=6 ./llil5vec-tbb big1.txt big2.txt big3.txt >big-5vec.tm
    +p
    llil5vec-tbb (fixed string length=6) start
    ...
    total               time : 1.4179 secs
    
    $ diff big-5vec.tmp big-3vec.tmp
    
  6. or download this
    $ NUM_THREADS=6 ./llil4vec2 big1.txt big2.txt big3.txt >f.tmp
    llil4vec2 (fixed string length=6) start
    ...
    vector stable sort  time :    0.197 secs
    write stdout        time :    0.322 secs
    total               time :    1.219 secs
    
  7. or download this
    $ NUM_THREADS=6 ./llil4vec2 big1.txt big2.txt big3.txt >f.tmp
    llil4vec2 (fixed string length=6) start
    ...
    vector stable sort  time :    0.194 secs
    write stdout        time :    0.329 secs
    total               time :    1.192 secs
    
  8. or download this
    $ NUM_THREADS=6 ./llil4vec2 big1.txt big2.txt big3.txt >f.tmp
    llil4vec2 (fixed string length=6) use memcmp start
    ...
    vector stable sort  time :    0.199 secs
    write stdout        time :    0.316 secs
    total               time :    1.120 secs
    
  9. or download this
    $ LD_PRELOAD=/usr/local/lib/libmimalloc.so NUM_THREADS=6 ./llil4vec-ne
    +w big1.txt big2.txt big3.txt >f.tmp
    llil4vec (fixed string length=6) start
    ...
    write stdout           0.300 secs
    total time             0.986 secs
    $ cmp f.tmp big-3vec.tmp
    
  10. or download this
    $ NUM_THREADS=6 ./llil4map big1.txt big2.txt big3.txt >f.tmp
    llil4map start
    ...
    vector stable sort  time : 0.76791 secs
    write stdout        time : 0.382316 secs
    total               time : 3.5832 secs
    
  11. or download this
    $ NUM_THREADS=6 LD_LIBRARY_PATH=/usr/local/lib ./llil4judy big1.txt bi
    +g2.txt big3.txt >f.tmp
    llil4judy (fixed string length=6) start
    ...
    write stdout           0.526 secs
    total time             3.810 secs
    $ cmp f.tmp big-3vec.tmp
    
  12. or download this
    $ NUM_THREADS=6 ./llil4vec2 big?.txt big?.txt big?.txt >f4vec.tmp
    llil4vec2 (fixed string length=6) start
    ...
    -rw-r--r--  31636800 Feb  1 09:33 big4.txt
    -rw-r--r--  31636800 Feb  1 09:31 big5.txt
    -rw-r--r--  31636800 Feb  1 09:31 big6.txt
    
  13. or download this
    Update: a later version with improved get_properties():
    $ NUM_THREADS=6 ./llil4vec2 big?.txt big?.txt big?.txt big?.txt big?.t
    +xt big?.txt >f4vec.tmp
    ...
    write stdout        time : 2.55906 secs
    total               time : 17.198 secs
    $ diff f4map.tmp f4vec.tmp
    
  14. or download this
    // llil5vec-tbb.cpp
    // Based on llil4vec-tbb.cpp in https://perlmonks.com/?node_id=1114968
    +7
    ...
    
       return 0;
    }
    
  15. or download this
    // llil4vec2.cpp
    // See also: perlmonks.com, node_id=11149754
    ...
    
       return 0;
    }