Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid recursion in optimize_bb() when only 1 child node
Optimize the case where we only have one child. This avoids having to do a recursive call to optimize_bb(). Keep following the nodes and running optimize_bb_switch() on them until we hit one with more than 1 child. Reduces the depth of recursion when compiling nqp from 99 to 29.
- Loading branch information