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-72904: Simplify implementation offnmatch.translate()#109879

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

Closed

Conversation

barneygale
Copy link
Contributor

@barneygalebarneygale commentedSep 26, 2023
edited
Loading

Usere to scan shell-style patterns, rather than parsing them by hand in a fat loop. This makes the code twice as slow (!) but arguably more obvious

Use `re.Scanner` to scan shell-style patterns, rather than parsing themby hand in a fat loop. This makes the code slower (!) but more obvious, andlays some groundwork for a future `glob.translate()` function.
@barneygalebarneygale marked this pull request as ready for reviewSeptember 26, 2023 02:22
@AA-Turner
Copy link
Member

twice as slow (!)

What are the benchmarks for this? (i.e. are we talking 10μs to 20μs or 250ms to 500ms?) The regression in performance here may not matter if the translation is a sufficiently small part of any reasonable usecase.

@serhiy-storchaka has been working onre performance lately and may have tips?

A

@barneygale
Copy link
ContributorAuthor

Withdrawing this PR - the performance isn't good enough.

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

@jaracojaracoAwaiting requested review from jaraco

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@barneygale@AA-Turner

[8]ページ先頭

©2009-2025 Movatter.jp