# Alternative to mapslices that does not allocate slices

**URL:** <https://discourse.julialang.org/t/alternative-to-mapslices-that-does-not-allocate-slices/13820>\
**Category:** General Usage\
**Tags:** splitapplycombine, mapslices\
**Created:** [August 21, 2018, 10:28am UTC](https://discourse.julialang.org/t/alternative-to-mapslices-that-does-not-allocate-slices/13820 "2018-08-21T10:28:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fabiangans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fabiangans/32/2624_2.png) [@fabiangans](https://discourse.julialang.org/u/fabiangans)\
**Post date:** [September 5, 2018, 2:17pm UTC](https://discourse.julialang.org/t/alternative-to-mapslices-that-does-not-allocate-slices/13820/4 "2018-09-05T14:17:04Z")

</div>

I don’t know if you are aware of this thread

> [@Bikeshedding mapslices](https://discourse.julialang.org/t/bikeshedding-mapslices/3998):
>
> I’m trying to improve the performance of mapslices, which is needed for in [https://github.com/JuliaLang/julia/issues/3893#issuecomment-304924903](https://github.com/JuliaLang/julia/issues/3893#issuecomment-304924903). The only changes I’ve made are to rename things so I understand (a little) what’s going on and some small rearrangements. I haven’t changed performance as far as I can tell. @tim.holy mentioned he might have some leads (and something about a blog post?) which is good cause I’m lost. function my\_mapslices(f, input::AbstractArray, sliced\_dimensions::Abs…

and the resulting package

> **[GitHub - bramtayl/JuliennedArrays.jl: Type stable array slicing](https://github.com/bramtayl/JuliennedArrays.jl)**
>
> Type stable array slicing. Contribute to bramtayl/JuliennedArrays.jl development by creating an account on GitHub.

should provide what you non-allocating array slices. Maybe @bramtayl can clarify?

---

_[View the full topic](https://discourse.julialang.org/t/alternative-to-mapslices-that-does-not-allocate-slices/13820)._
