minor refactor
do not measure path parsing time
shortcircuit horizontal edge