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

gh-108113: Make it possible to optimize an AST#108282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
iritkatriel merged 2 commits intopython:mainfromiritkatriel:ast_parse2
Aug 23, 2023

Conversation

iritkatriel
Copy link
Member

@iritkatrieliritkatriel commentedAug 22, 2023
edited by bedevere-bot
Loading

@iritkatriel
Copy link
MemberAuthor

Skipping news as the previous PR's news covers this.

@@ -804,25 +804,39 @@ builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
if (is_ast == -1)
goto error;
if (is_ast) {
PyArena *arena = _PyArena_New();
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if anyone has perf-sensitive code that doesast.parse on an AST as a no-op, and what the impact on that code will be of allocating and freeing an unused arena. Probably not an issue? I think it would be possible, but slightly more complex, to still avoid arena allocation in the no-op case.

iritkatriel reacted with thumbs up emoji
@iritkatrieliritkatriel changed the titlegh-108113: Make it possible to optimize and ASTgh-108113: Make it possible to optimize an ASTAug 23, 2023
@iritkatrieliritkatriel merged commit2dfbd4f intopython:mainAug 23, 2023
@bedevere-bot
Copy link

There's a new commit after the PR has been approved.

@carljm: please review the changes made to this pull request.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

@carljmcarljmAwaiting requested review from carljm

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@iritkatriel@bedevere-bot@carljm

[8]ページ先頭

©2009-2025 Movatter.jp