From 346b1c5195bffc71ceaa9262453e3c189656400b Mon Sep 17 00:00:00 2001 From: godosa Date: Tue, 6 Oct 2026 23:52:03 +0200 Subject: worldgen: initial public history --- mapgen/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 mapgen/__init__.py (limited to 'mapgen/__init__.py') diff --git a/mapgen/__init__.py b/mapgen/__init__.py new file mode 100644 index 0000000..63fd969 --- /dev/null +++ b/mapgen/__init__.py @@ -0,0 +1,7 @@ +"""World generator.""" +import os + +# OpenBLAS threads spin ~0.1 s after each call before sleeping; with solves on several threads (and other jobs on the +# machine) that spinning steals the cores doing the work. A short timeout changes nothing in how work is split, so +# results stay the same bits (the thread *count* would not: see pipeline/graph notes). Only before numpy loads. +os.environ.setdefault("OPENBLAS_THREAD_TIMEOUT", "4") -- cgit