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-103583: Isolate CJK codec modules#103869

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
erlend-aasland merged 7 commits intopython:mainfromerlend-aasland:isolate-cjk-alt2
Apr 27, 2023

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aaslanderlend-aasland commentedApr 26, 2023
edited by bedevere-bot
Loading

@erlend-aaslanderlend-aasland marked this pull request as ready for reviewApril 26, 2023 13:15
@erlend-aasland
Copy link
ContributorAuthor

This approach exploits the dependency introduced ingh-103589; we know for sure that the _codec* extension modules will outlive _multibytecodec. This means we can store the cjk codec module state safely in the codec struct and modify the various codec handlers to accept the codec struct (iso.void *config). Then we add custom cjk module state where needed, and conveniently fetch it from the codec struct. (Quick and dirty explanation; see the code if what I wrote does not make sense 😎)

@erlend-aaslanderlend-aasland added the 🔨 test-with-refleak-buildbotsTest PR w/ refleak buildbots; report in status section labelApr 26, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@erlend-aasland for commitef983c4 🤖

If you want to schedule another build, you need to add the🔨 test-with-refleak-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-refleak-buildbotsTest PR w/ refleak buildbots; report in status section labelApr 26, 2023
@erlend-aasland
Copy link
ContributorAuthor

BTW, I removed theinitialized guards. I'm pretty sure we can do that, but I haven't verified it yet.

@erlend-aasland
Copy link
ContributorAuthor

erlend-aasland commentedApr 26, 2023
edited
Loading

Also, we can split outcb2c9e7 as a separate PR. That may be beneficial regarding to future bisects; it will also make this PR easier to review.

Similarly,f6ed5df can be split up to do the arg spec changes first, and then move stuff to module state afterwards.

@erlend-aasland
Copy link
ContributorAuthor

@vstinner, you want to take a look? :)

@corona10
Copy link
Member

@erlend-aasland I will take a look by tomorrow

erlend-aasland reacted with heart emoji

@erlend-aasland
Copy link
ContributorAuthor

(Pulling in main to get the latest ref. leak fixes by Jelle)

@erlend-aaslanderlend-aasland added the 🔨 test-with-refleak-buildbotsTest PR w/ refleak buildbots; report in status section labelApr 26, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@erlend-aasland for commitdec79a7 🤖

If you want to schedule another build, you need to add the🔨 test-with-refleak-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-refleak-buildbotsTest PR w/ refleak buildbots; report in status section labelApr 26, 2023
@erlend-aaslanderlend-aasland changed the titlegh-103583: Isolate CJK modules, alternative 2gh-103583: Isolate CJK codec modulesApr 26, 2023
@erlend-aaslanderlend-aasland linked an issueApr 26, 2023 that may beclosed by this pull request
Copy link
Member

@corona10corona10 left a comment

Choose a reason for hiding this comment

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

LGTM, This is quite a complicated but nice approach. But nothing can be better than this.
Thanks for the hard work!

erlend-aasland reacted with heart emoji
@erlend-aasland
Copy link
ContributorAuthor

Thanks for the review, Dong-hee! Yes, it is complicated, but as shown in my competing PRs, other approaches are even more complicated.

@erlend-aaslanderlend-aasland merged commit8a0c7f1 intopython:mainApr 27, 2023
@erlend-aaslanderlend-aasland deleted the isolate-cjk-alt2 branchApril 27, 2023 13:02
@vstinner
Copy link
Member

Well done@erlend-aasland!

erlend-aasland reacted with laugh emoji

@erlend-aasland
Copy link
ContributorAuthor

Well done@erlend-aasland!

Thanks, Victor :) This was a tricky one!

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

@corona10corona10corona10 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Isolate _multibytecodec
5 participants
@erlend-aasland@bedevere-bot@corona10@vstinner@sobolevn

[8]ページ先頭

©2009-2025 Movatter.jp