8000 ENH: reduce the overhead of the checks in the multinomial function · Issue #20636 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
ENH: reduce the overhead of the checks in the multinomial function #20636
Closed
@zephyr111

Description

@zephyr111

Proposed new feature or change:

Hello,

We have discovered a performance regression of the numpy.random.multinomial function for small arrays apparently caused by the commit 0f3dd06 which add new checks. The checks are expensive regarding their purpose (especially for small arrays). This can be reproduced with Python 3.9.9 on a x86-64 machine using both Windows and Linux. Is there a way to reduce the overhead of such checks?

For more information, please read this Stack-Overflow post.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0