-
-
Notifications
You must be signed in to change notification settings - Fork 11k
Reference leak when comparing structured scalars #6250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Note this is a regression in 1.10. 1.9.2 is fine. |
That must definitely be it. There is a missing It is astonishing the number of temporary arrays that get created here:
|
Yeah, that's definitely it. Good catch, thank you! I'll get a patch
|
Regression introduced in 4b1f508 Closes numpygh-6250.
[start using the ufunc machinery, I meant, in that last comment... i.e. instead of having this weird richcompare stuff we should just make |
Well, the irony is that the code here compares scalars, so the indirection through arrays ideally shouldn't be necessary at all ;) That's a separate discussion anyway. |
Regression introduced in 4b1f508 Closes numpygh-6250.
Regression introduced in 4b1f508 Closes numpygh-6250.
If you execute the following code, you'll it leaks a reference to the array:
The leak disappears if you remove the comparison (
u == v
) or if you remove the character string member in the dtype (thed
member here). I've tried to diagnose this but I'm ending up completely lost in the comparison logic (which creates multiple temporary arrays).The text was updated successfully, but these errors were encountered: