Skip to content

Speed up equality comparisons between contiguous byte memoryviews with memcmp() #162513

Backlog

Description

@maurycy

Feature or enhancement

cmp_base() compares each byte with each byte. Contiguous views with the same byte format (B, b or c) can just use memcmp().

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added
    type-feature
    on Nov 23, 2026
  2. changed the title [-]Speed up equality comparisons between contiguous byte `memoryview`s[/-] [+]Speed up equality comparisons between contiguous byte `memoryview`s with `memcp`[/+] on Nov 23, 2026
  3. changed the title [-]Speed up equality comparisons between contiguous byte `memoryview`s with `memcp`[/-] [+]Speed up equality comparisons between contiguous byte `memoryview`s with `memcmp`[/+] on Nov 23, 2026
  4. changed the title [-]Speed up equality comparisons between contiguous byte `memoryview`s with `memcmp`[/-] [+]Speed up equality comparisons between contiguous byte `memoryview`s with `memcmp()`[/+] on Nov 23, 2026
  5. added
    interpreter-core
    performance
    on Nov 23, 2026
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

    interpreter-coreperformancetype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions