Skip to content

Commit

Permalink
Make OP_10 run quickly again
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Feb 14, 2024
1 parent ee82db5 commit 1788d39
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/todd-coxeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,20 @@ namespace libsemigroups {
// but didn't seem to be very useful).
process_coincidences<DoNotRegisterDefs>();
current = NodeManager<node_type>::next_active_node(current);
if (stop_early && t > std::chrono::seconds(1)) {
size_t killed_last_second
= number_of_nodes_killed() - stats().prev_nodes_killed;
if (killed_last_second == 0) { // TODO setting for this
report_default("ToddCoxeter: too few nodes killed, expected >= "
"{}, found {}, aborting lookahead . . .\n",
0,
killed_last_second);
report_no_prefix("{:-<93}\n", "");
break;
}
}
// if (stop_early && t > std::chrono::seconds(1)) {
// TODO setting for this
// size_t killed_last_second
// = number_of_nodes_killed() - stats().prev_nodes_killed;
// if (killed_last_second < number_of_nodes_active() / 100) {
// report_default("ToddCoxeter: too few nodes killed, expected >= "
// "{}, found {}, aborting lookahead . . .\n",
// number_of_nodes_active() / 100
// killed_last_second);
// report_no_prefix("{:-<93}\n", "");
// break;
// }
// report_active_nodes();
//}
}
return NodeManager<node_type>::number_of_nodes_killed()
- old_number_of_killed;
Expand Down

0 comments on commit 1788d39

Please sign in to comment.