Skip to content

gh-120065: Increase collect_in_thread period to 5 ms. - #120068

Merged
colesbury merged 2 commits into
python:mainfrom
colesbury:gh-120065-collect-in-thread
Jun 5, 2024
Merged

gh-120065: Increase collect_in_thread period to 5 ms.#120068
colesbury merged 2 commits into
python:mainfrom
colesbury:gh-120065-collect-in-thread

Conversation

@colesbury

@colesbury colesbury commented Jun 4, 2024

Copy link
Copy Markdown
Contributor

This matches the default GIL switch interval. It greatly speeds up the free-threaded build: previously, it spent nearly all its time in gc.collect().

This matches the default GIL switch interval. It greatly speeds up the
free-threaded build: previously, it spent nearly all its time in
`gc.collect()`.
@colesbury
colesbury merged commit 4bba1c9 into python:main Jun 5, 2024
@colesbury
colesbury deleted the gh-120065-collect-in-thread branch June 5, 2024 13:23
@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 5, 2024
…GH-120068)

This matches the default GIL switch interval. It greatly speeds up the
free-threaded build: previously, it spent nearly all its time in
`gc.collect()`.
(cherry picked from commit 4bba1c9)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app

bedevere-app Bot commented Jun 5, 2024

Copy link
Copy Markdown

GH-120110 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jun 5, 2024
colesbury added a commit that referenced this pull request Jun 5, 2024
…0068) (#120110)

This matches the default GIL switch interval. It greatly speeds up the
free-threaded build: previously, it spent nearly all its time in
`gc.collect()`.
(cherry picked from commit 4bba1c9)

Co-authored-by: Sam Gross <colesbury@gmail.com>
barneygale pushed a commit to barneygale/cpython that referenced this pull request Jun 5, 2024
…#120068)

This matches the default GIL switch interval. It greatly speeds up the
free-threaded build: previously, it spent nearly all its time in
`gc.collect()`.
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
…#120068)

This matches the default GIL switch interval. It greatly speeds up the
free-threaded build: previously, it spent nearly all its time in
`gc.collect()`.
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…#120068)

This matches the default GIL switch interval. It greatly speeds up the
free-threaded build: previously, it spent nearly all its time in
`gc.collect()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants