Skip to content

Optimize lpad, rpad for ASCII-only strings #20277

Description

@neilconway

Is your feature request related to a problem or challenge?

These functions don't special-case ASCII-only inputs, which incurs the overhead of Unicode machinery for the common case of ASCII-only strings.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. added a commit that references this issue on Feb 20, 2026
    b7f6090
  2. added a commit that references this issue on Mar 24, 2026
    bfce234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions