Fix a performance bug in the topological sort of actions.
I did a map instead of a fold when checking for the absence of cycle. On programs with 10 000 of equations, I go from 150s to 5s.
Showing
- _oasis 1 addition, 1 deletion_oasis
- src/lv6version.ml 2 additions, 2 deletionssrc/lv6version.ml
- src/sortActions.ml 29 additions, 16 deletionssrc/sortActions.ml
- test/lus2lic.sum 10 additions, 10 deletionstest/lus2lic.sum
- test/should_work/onlyroll.lus 3 additions, 1 deletiontest/should_work/onlyroll.lus
Loading
Please register or sign in to comment