# Big overhead with the new lazy reshape/reinterpret

**URL:** <https://discourse.julialang.org/t/big-overhead-with-the-new-lazy-reshape-reinterpret/7635>\
**Category:** Internals & Design\
**Created:** [December 8, 2017, 8:02pm UTC](https://discourse.julialang.org/t/big-overhead-with-the-new-lazy-reshape-reinterpret/7635 "2017-12-08T20:02:20Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![foobar\_lv2](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Post date:** [December 11, 2017, 11:52am UTC](https://discourse.julialang.org/t/big-overhead-with-the-new-lazy-reshape-reinterpret/7635/6 "2017-12-11T11:52:07Z")

</div>

Have you tried the following:

```julia
assert(typeof(a)==Array{Float64, 2})
assert(3==size(a,1))
b=unsafe_wrap(Array, reinterpret(Ptr{SVector{3, Float64}},pointer(a)), (size(a,2),), false); 

```

Of course this is a dirty workaround and requires you to possibly @gc\_preserve a.

---

_[View the full topic](https://discourse.julialang.org/t/big-overhead-with-the-new-lazy-reshape-reinterpret/7635)._
