-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
It seems like it should be possible to do this without collecting the full range
julia> intersect(1:typemax(Int), [1,3])
julia(30683,0x116666e00) malloc: can't allocate region
:*** mach_vm_map(size=4611686018427392000, flags: 100) failed (error code=3)
julia(30683,0x116666e00) malloc: *** set a breakpoint in malloc_error_break to debug
ERROR: OutOfMemoryError()
Stacktrace:
[1] _growend!
@ ./array.jl:982 [inlined]
[2] resize!
@ ./array.jl:1207 [inlined]
[3] rehash!(h::Dict{Int64, Nothing}, newsz::Int64)
@ Base ./dict.jl:184
[4] sizehint!
@ ./dict.jl:244 [inlined]
[5] sizehint!
@ ./set.jl:76 [inlined]
[6] union!(s::Set{Int64}, itr::UnitRange{Int64})
@ Base ./abstractset.jl:95
[7] Set
@ ./set.jl:10 [inlined]
[8] _Set
@ ./set.jl:25 [inlined]
[9] Set
@ ./set.jl:23 [inlined]
[10] _shrink(shrinker!::Function, itr::UnitRange{Int64}, itrs::Tuple{Vector{Int64}})
@ Base ./array.jl:2609
[11] intersect(itr::UnitRange{Int64}, itrs::Vector{Int64})
@ Base ./array.jl:2613
[12] top-level scope
@ REPL[10]:1oscardssmith
Metadata
Metadata
Assignees
Labels
No labels