Skip to content

Speed up small CLI tools by removing import re from the excecutable template #13165

Open
@hukkin

Description

@hukkin

What's the problem this feature will solve?

This performance improvement was discussed in upstream distlib here, but was rejected: pypa/distlib#239. Performance measurements can be found in that discussion.

Describe the solution you'd like

Override distlib.scripts.ScriptMaker.script_template with a template that doesn't import re.

Alternative Solutions

Keep current state.

Additional context

Previous discussions:

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions