JuliaArrays / ShiftedArrays.jl

Lazy shifted arrays for data analysis in Julia
Other
50 stars 10 forks source link

Add benchmarks to compare with Base.circshift for simple operations #18

Open piever opened 6 years ago

inkydragon commented 4 years ago

Some real world case:

In the Chinese community of Julia, someone opened a topic complaining that Julia's code took up too much memory. After the performance test (julia --track-allocation=user filename.jl), I found that Base.circshift took up the most memory.

After some searching, I found this package, and by using this package, the memory consumption problem was solved.

reduce 94% memory allocations (estimate using BenchmarkTools.@benchmark)

Some Notes: