# Using hcat with splatting on arrays of different lengths kills Julia

**URL:** <https://discourse.julialang.org/t/using-hcat-with-splatting-on-arrays-of-different-lengths-kills-julia/15733>\
**Category:** General Usage\
**Tags:** compilation, memory, memory-allocation\
**Created:** [October 1, 2018, 12:44pm UTC](https://discourse.julialang.org/t/using-hcat-with-splatting-on-arrays-of-different-lengths-kills-julia/15733 "2018-10-01T12:44:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![janfrancu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/janfrancu/32/5673_2.png) [@janfrancu](https://discourse.julialang.org/u/janfrancu)\
**Post date:** [October 2, 2018, 7:48am UTC](https://discourse.julialang.org/t/using-hcat-with-splatting-on-arrays-of-different-lengths-kills-julia/15733/3 "2018-10-02T07:48:19Z")

</div>

Thanks for the answer. I was worried about the performance of such workaround, however it seems, there is a striking difference between 0.6 and 0.7 reduce function. In the former version reduce did not scale really well, as it had big memory overhead, however with the later the reduce function seams to be even faster. I have posted some benchmarks in the other topic, where this issue came up - [Problem with cat() - #5 by Tomas\_Pevny](https://discourse.julialang.org/t/problem-with-cat/15750/5).

---

_[View the full topic](https://discourse.julialang.org/t/using-hcat-with-splatting-on-arrays-of-different-lengths-kills-julia/15733)._
