LocalFilters.jl
LocalFilters.jl copied to clipboard
[Optimization] Specialize `localmap` and `localreduce`
localmap has some overheads due to the local buffer that must be allocated and filled. These overheads can be avoided in some specific cases:
- Specialize
localmapso thatlocalmap(mean,A,B)is the same aslocalmean(A,B); except thatBcan provides weight inlocalmean. - Specialize
localmapso thatlocalmap(minimum,A,B)andlocalmap(maximum,A,B)is the same aserode(A,B)anddilate(A,B). - Similarly
localmap(sum,A,B)can be (ifBis a simple box) optimized aslocalreduce(+,T,A,B)with suitable element typeT.
Have you compared performance to other libraries? Specifically vs. Intel IPP?
No not yet. I do not have this commercial library.
It is available for free either as standalone or part of oneAPI:
https://www.intel.com/content/www/us/en/developer/tools/oneapi/ipp.html