desbordante-core icon indicating copy to clipboard operation
desbordante-core copied to clipboard

Multi-threaded implementation of HyFD algorithm

Open cone-forest opened this issue 2 months ago • 0 comments

The HyFD algorithm was originally single-threaded, which goes against its intended implementation. If ThreadNumber option is specified in the algorithm configuration step, the algorithm will utilize the specified number of threads.

This implementation was benchmarked on several large datasets such as:

  • iowa1kk
  • EpicMeds
  • flight

The general trend is displayed in the following graph: hyfd_bench_threads_iowa1kk (data for iowa1kk dataset on i9-13905h)

Alternative implementations showing worse performance:

  • Desbordante's utils::ParallelForEach
  • std::future + std::async
  • std::execution::par
  • OpenMP parallel for macro
  • TBB parallel for function

The final implementation showed high time consumption by memory allocation/deallocation. In attempt of optimizing them the following allocators were benchmarked:

  • tbb::scalable_allocator
  • tcmalloc
  • jemalloc
  • mimalloc All of which showed similar/worse performance, therefore implementing custom allocator is probably useless.

cone-forest avatar May 05 '24 21:05 cone-forest