Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

GH-124567: Reduce overhead of debug build for GC. Should help CI performance#126777

Merged
markshannon merged 3 commits intopython:mainfrom
faster-cpython:gc-extra-debug
Nov 15, 2024
Merged

GH-124567: Reduce overhead of debug build for GC. Should help CI performance#126777
markshannon merged 3 commits intopython:mainfrom
faster-cpython:gc-extra-debug

Conversation

@markshannon
Copy link
Member

@markshannonmarkshannon commentedNov 13, 2024
edited by github-actionsbot
Loading

The doctests CI takes ages and it uses a debug build.

Arguably debug builds should be good for debugging, i.e. lots of asserts. If you want performance don't use a debug build.

However, the incremental GC does adds alot of extra sanity checks and it is a pain if CI jobs take half an hour or more.

So, this PR adds an extra debug option to reduce the amount of checking done in a normal debug build, but keeps the extra sanity checks if needed for debugging the GC.


📚 Documentation preview 📚:https://cpython-previews--126777.org.readthedocs.build/

@markshannon
Copy link
MemberAuthor

Reduces the time it takes CI to run theDoc/Doctest job by ~40%.

AlexWaygood reacted with rocket emoji

@markshannonmarkshannon marked this pull request as ready for reviewNovember 13, 2024 12:00
@pablogsal
Copy link
Member

Not opposing to this but this will mean that debug builds that are redistributed won't have GC list validation so linked list corruption will be more difficult to debug when users leverage debug builds of the interpreter.

@markshannon
Copy link
MemberAuthor

This only removes the extra asserts added for the incremental GC, the original list validations from 3.13 are still present.

pablogsal reacted with thumbs up emoji

@pablogsal
Copy link
Member

This only removes the extra asserts added for the incremental GC, the original list validations from 3.13 are still present.

Sorry I was confused by the diff

Copy link
Member

@brandtbucherbrandtbucher left a comment

Choose a reason for hiding this comment

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

Looks good. I'm guessingvalidate_list is the cheapest (or most useful) check?

@markshannonmarkshannon merged commitc0f045f intopython:mainNov 15, 2024
@markshannonmarkshannon deleted the gc-extra-debug branchNovember 18, 2024 14:36
picnixz pushed a commit to picnixz/cpython that referenced this pull requestDec 8, 2024
ebonnal pushed a commit to ebonnal/cpython that referenced this pull requestJan 12, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@brandtbucherbrandtbucherbrandtbucher approved these changes

@pablogsalpablogsalAwaiting requested review from pablogsal

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@markshannon@pablogsal@brandtbucher

[8]ページ先頭

©2009-2026 Movatter.jp