FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-143057: avoid lock in tracemalloc APIs when it is not enabled by kumaraditya303 · Pull Request #143065 · python/cpython · GitHub

Repository navigation

gh-143057: avoid lock in tracemalloc APIs when it is not enabled - #143065

Merged
kumaraditya303 merged 4 commits into
python:mainfrom
kumaraditya303:tracemalloc
Dec 22, 2025
Merged

kumaraditya303 merged 4 commits into
python:mainfrom
kumaraditya303:tracemalloc

Conversation

kumaraditya303 commented Dec 22, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Comment thread Python/tracemalloc.c Outdated
kumaraditya303 marked this pull request as ready for review December 22, 2025 12:00
Comment thread Python/tracemalloc.c
…e-143057.Majsre.rst

Co-authored-by: T. Wouters <thomas@python.org>

Copy link
Copy Markdown
Contributor Author

@Yhg1s Should this be backported to 3.14?

ngoldbaum commented Dec 22, 2025 •
edited
Loading

Copy link
Copy Markdown
Contributor

@Yhg1s Should this be backported to 3.14?

I think so yes. I like @colesbury's rule of thumb for this, I hope he doesn't mind me quoting something he said on discord:

I think it's often worth it to backport small changes that avoid scaling bottlenecks if we have a bug report or think it's likely that people are running into them.

I think it's not worth backporting small performance improvements.

Roughly: if something is accidentally O(N^2), it's a bug. If something is 10% faster, it's a performance improvement.

colesbury left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM as well

kumaraditya303 added performance Performance or resource usage topic-free-threading needs backport to 3.14 bugs and security fixes labels Dec 22, 2025
kumaraditya303 merged commit e728b00 into python:main Dec 22, 2025
52 checks passed

Copy link
Copy Markdown

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

kumaraditya303 deleted the tracemalloc branch December 22, 2025 15:38
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 22, 2025
… enabled (pythonGH-143065)

(cherry picked from commit e728b00)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>

bedevere-app Bot commented Dec 22, 2025

Copy link
Copy Markdown

GH-143071 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Dec 22, 2025
kumaraditya303 added a commit that referenced this pull request Dec 22, 2025
…t enabled (GH-143065) (#143071)

gh-143057: avoid locking in `tracemalloc` C-APIs when it is not enabled (GH-143065)
(cherry picked from commit e728b00)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage topic-free-threading

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL