Multi-threading and startup speed
When doing multi-threading, parsing the input and inserting it into the solver threads is actually one of the most tricky part. Of course one can simply do void add_clause_to_all_threads(Clause clause) { for(int i = 0; i < threads; i++) { solver[i].add_clause(clause); } } It works and my SAT solver entry to the competition used this method. However, if we have 12 threads, the startup time will be 12x more than usual since only one thread is adding the clauses to all the solvers. If startup used to be 3s, it’s suddenly more than half a minute. ...