efficient subset query for ranges #32461
Labels
good first issue
Indicates a good issue for first-time contributors to Julia
help wanted
Indicates that a maintainer wants help on an issue or pull request
issubset(1:5, 1:10^18)
gives an OutOfMemoryError() on Julia 1.1, although it works on 0.6.From the source I see #26198 is the change, which creates a
Set
when the 2nd vector haslength
> 70, and #28871 disables this for objects without a length. I guess the minimal fix is also to disable this for ranges.But there is no need to do this by iteration. I assumed that because
intersect(1:10, 1:10^18)
knows to return a range, this would behave similarly. Should we add similar methods toissubset
?The text was updated successfully, but these errors were encountered: