Skip to content

Add missing config.DISABLE_PERFORMANCE_WARNINGS checks - #9794

Merged
swap357 merged 3 commits into
numba:mainfrom
maxkapur:fix-disable-performance-warnings-simple
Aug 18, 2026
Merged

swap357 merged 3 commits into
numba:mainfrom
maxkapur:fix-disable-performance-warnings-simple

Conversation

@maxkapur

Copy link
Copy Markdown
Contributor

There are a few places where Numba raises a NumbaPerformanceWarning without first checking whether config.DISABLE_PERFORMANCE_WARNINGS is enabled, meaning that disabling performance warnings (e.g. using the NUMBA_DISABLE_PERFORMANCE_WARNINGS environment variable) fails to silence some warnings.

This PR adds these checks.

Closes #9762 (the associated bug).

Closes #9767 (PR providing an alternative solution).

@gmarkall gmarkall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. A couple of thoughts:

@stuartarchibald stuartarchibald added 2 - In Progress 4 - Waiting on author Waiting for author to respond to review and removed 2 - In Progress labels Nov 19, 2024
@maxkapur

Copy link
Copy Markdown
Contributor Author

Thank you for the feedback! I added the release notes. I also went ahead and rebased on main (hence the force-push).

Here is a companion PR for numba-cuda: NVIDIA/numba-cuda#70

@maxkapur
maxkapur requested a review from gmarkall December 7, 2024 15:14
@maxkapur

Copy link
Copy Markdown
Contributor Author

Hello @gmarkall, wondering if this slipped through the cracks as it still says "waiting for author."

@gmarkall gmarkall added 4 - Waiting on reviewer Waiting for reviewer to respond to author and removed 4 - Waiting on author Waiting for author to respond to review labels Dec 31, 2024
@gmarkall gmarkall added this to the 0.62.0rc1 milestone Dec 31, 2024
@esc esc modified the milestones: 0.62.0-rc1, 0.63.0-rc1 Aug 19, 2025
@gmarkall gmarkall modified the milestones: 0.63.0rc1, 0.64.0rc1 Oct 28, 2025
@swap357 swap357 modified the milestones: 0.64.0rc1, 0.65.0rc1 Feb 3, 2026
@swap357 swap357 modified the milestones: 0.65.0rc1, 0.66.0rc1 Mar 11, 2026
@swap357 swap357 modified the milestones: 0.66.0rc1, 0.67.0rc1 Jun 5, 2026
@swap357

swap357 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Hi @maxkapur,
Thanks for the PR. I’ve reviewed it and it looks good.
Could you please merge main onto this branch and resolve the conflicts?

@swap357 swap357 modified the milestones: 0.67.0rc1, 0.68.0rc1 Jul 22, 2026
@swap357
swap357 dismissed gmarkall’s stale review July 23, 2026 15:00

requested changes were addressed

@swap357 swap357 self-assigned this Aug 18, 2026

@swap357 swap357 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thank you @maxkapur

@swap357
swap357 merged commit 22812e5 into numba:main Aug 18, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 - Waiting on reviewer Waiting for reviewer to respond to author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NUMBA_DISABLE_PERFORMANCE_WARNINGS=1 fails to disable warnings

5 participants