# HG changeset patch # User Jean-Francois Pieronne # Date 2023-08-03 00:30:57 # Node ID d0b8bbf603d7132ace2a53bff2e9eda561d636b0 # Parent ce9cb12ca8c92166fdc94ddad22f5c1b8f6bae58 openvms: consider worker costly on OpenVMS As for Windows, the parallel worker feature is less appealing on OpenVMS. diff --git a/mercurial/worker.py b/mercurial/worker.py --- a/mercurial/worker.py +++ b/mercurial/worker.py @@ -61,7 +61,9 @@ def ismainthread(): return threading.current_thread() == threading.main_thread() -if pycompat.isposix or pycompat.iswindows: +if ( + pycompat.isposix and pycompat.sysplatform != b'OpenVMS' +) or pycompat.iswindows: _STARTUP_COST = 0.01 # The Windows worker is thread based. If tasks are CPU bound, threads # in the presence of the GIL result in excessive context switching and