Commit Graph

4 Commits

Author SHA1 Message Date
e54f4c42f1 Update tsconfig, package.json to run in full ESM mode 2021-02-25 00:30:09 -07:00
09f740f86a Add cors 2021-02-23 16:47:58 -07:00
7ac3e6ad06 Use worker threads for sudoku generation
Moves sudoku generation off of the main thread. Allows for multiple
generation requests (up to the number of physical CPU cores) to be
served in parallel. Uses the "physical-cpu-count" node package to
determine the numer of physical CPUs of the host.

Also introduces a timeout which causes too-difficult (or impossible)
generation requests to fail if they take more than 5 seconds to
complete. In effect soft-capping the complexity of generated puzzles.
2021-02-20 18:57:18 -07:00
7f9cffbfdd initial commit 2021-02-19 23:55:49 -07:00