Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize multi-level parents builder (kaspanet#79)
* Flip loops order * Move empty level check to inner * Use BlockHashMap/Set * Filter inner duplicates with an hash set * Apply clippy suggestion * Avoid outer vector * Use retain * Make query of origin children future more readable * We need to iterate parent's parents only if parent is not at block_level * Fix comments * Use smallvec for ref blocks * Mark first parent's parents * Use u8 for block_level loop variable * And comment and turn some reachability queries into a lazy evaluation * Add a test for the case of multiple parallel high-level parents which are below the pruning point
- Loading branch information