improve scheduling for visitor-like pattern

Link: https://github.com/GeneAssembly/biosal/issues/673
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>