-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Extrema, flattened iterator and too much memory alloation #34385
Comments
|
It seems that in the second case, the creation of the |
Please note that this happens just when used with flatten iterator, it's state is quite complicated nested tuple. For simple array it works ok:
@KristofferC this tuple eliding is done when generating LLVM IR, right? |
I think the issue itself would be solved by #36265. (Though I'm not sure if this issue should be treated as a possible improvement for the compiler.) |
I can't reproduce. Fixed in the meantime? |
I can't reproduce too, it is fixed in 1.5. Thanks :) |
Hi,
The issue I am reporting is related to discourse conversation: https://discourse.julialang.org/t/concatenating-iterables-without-allocating-memory/33282
Also I commented some details to other issue: #31442 (comment)
I encountered it using
extrema
function with flattened iterator, but here I am providing more distilled example.First of all I need 2 big arrays which we are going to concatenate with a lazy iterator.
Now I am going to define a functions that will iterate this flattened data. They are based on
extrema
implementation.The second one has strange timings and memory consumption.
There is no memory leak, I tried to run in a loop 1000 times.
The text was updated successfully, but these errors were encountered: