Skip to content

Concurrent topological sorting

Compare
Choose a tag to compare
@rouson rouson released this 22 Sep 19:09
· 12 commits to main since this release
923348e

This release provides a refactored topological_sort function that

  1. Converts the internal subroutine depth_first_search to a function, which means 👀
    a. all procedures in dag are now functions except Vegetable's runsubroutine in the test suite 💯
    b. every function is pure except those that call jsonff (which was already true before this release). ❄️
  2. Use the resulting clarity in information flow to eliminate several unnecessary local variables, ℹ️
  3. Changes several remaining local declarations to associations, which 🎏
    a. avoids unnecessary temporary copies and ©️
    b. prevents some potential uses of uninitialized variables (none were present). 😨
  4. Converts do loops to do concurrent, opening opportunities for future optimization 🚀 via
    a. vectorization, 🏹
    b. multithreading, or 🧵
    c. GPU acceleration. 🎮