Skip to content

Investigate performance loss from negative bigint changes #5043

Closed

Description

@1RyanK

It was noted that the following code caused performance loss:

        neg_mask = array((a < 0) * -2 + 1)
        abs_a = array(abs(a), dtype, max_bits=max_bits)
        assert isinstance(abs_a, pdarray)  # This is for mypy reasons
        return neg_mask * abs_a

(from here)

It would be good to investigate if there's any better way to do this, or at least offset bad performance

Activity

  1. added
    bug
    on Nov 10, 2025
  2. added 8 commits that reference this issue on Nov 10, 2025
    ed645fa
    b920070
    347aca5
    4a1c7fb
    db80404
    e498c4c
    55a9a52
    faee9c4
  3. added 4 commits that reference this issue on Dec 1, 2025
    53ad365
    b1dd002
    deeb252
    7649045
  4. added a commit that references this issue on Dec 4, 2025
    4429ff0
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions