pyperf icon indicating copy to clipboard operation
pyperf copied to clipboard

gh-187: Support environment variables PYTHON_GIL / PYTHON_CPU_COUNT

Open corona10 opened this issue 1 year ago • 4 comments

  • https://docs.python.org/3.13/using/cmdline.html#envvar-PYTHON_CPU_COUNT
  • https://docs.python.org/3.13/using/cmdline.html#envvar-PYTHON_GIL

corona10 avatar May 11 '24 10:05 corona10

cc @tonybaloney

corona10 avatar May 11 '24 11:05 corona10

@hugovk PTAL for this PR too :)

corona10 avatar May 11 '24 12:05 corona10

Remark: If clearing env vars is a surprising/bad default behavior for end users, we can also just remove it? I did it to make benchmarks easier to reproduce.

vstinner avatar May 12 '24 20:05 vstinner

Remark: If clearing env vars is a surprising/bad default behavior for end users, we can also just remove it? I did it to make benchmarks easier to reproduce.

I think that the propagation is the more precise way. I prefer to support it as same as currently.

corona10 avatar May 13 '24 03:05 corona10