Implement collect_similar like collect for DiskGenerators#198
Implement collect_similar like collect for DiskGenerators#198meggart merged 2 commits intoJuliaIO:mainfrom
Conversation
|
Iterating like that is super slow... Can we loop over |
|
It's already doing that via julia> da.getindex_log
200-element Vector{Any}:
(1:10, 1:10)
(11:20, 1:10)
(21:30, 1:10)
(31:40, 1:10)
(41:50, 1:10)
(51:60, 1:10)
(61:70, 1:10)
(71:80, 1:10)
(81:90, 1:10)
(91:100, 1:10)
(101:110, 1:10)
(111:120, 1:10)
⋮
(91:100, 91:100)
(101:110, 91:100)
(111:120, 91:100)
(121:130, 91:100)
(131:140, 91:100)
(141:150, 91:100)
(151:160, 91:100)
(161:170, 91:100)
(171:180, 91:100)
(181:190, 91:100)
(191:200, 91:100) |
|
Should we get this in as is, as a bugfix, and then work on improving performance? It's no worse than the current state of affairs, and at least |
|
I agree that it would be good to have a not so performant fix for now. Do you think it is worth tagging a new release or should we wait for #200 ? |
|
Yes good to at least fix it. @asinghvi17 there is a kind of double iteration check on every call to |
|
I think a new patch release is probably worth it - not sure how tough it will be to fix the problem! |
Not sure if this is the best approach, but it works for now 🤷
collectto an overload onBase.collect_similarmapalways worksI can confirm that the test fails on current master of DiskArrays and works on this PR.