# Allocations in large function

**URL:** <https://discourse.julialang.org/t/allocations-in-large-function/7559>\
**Category:** General Usage\
**Created:** [December 6, 2017, 9:27am UTC](https://discourse.julialang.org/t/allocations-in-large-function/7559 "2017-12-06T09:27:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [December 6, 2017, 9:49am UTC](https://discourse.julialang.org/t/allocations-in-large-function/7559/2 "2017-12-06T09:49:04Z")

</div>

You are hitting [https://github.com/JuliaLang/julia/issues/14821](https://github.com/JuliaLang/julia/issues/14821). Change

```julia
c = coefficients[1] * x1_1 * x5_1 * x6_1 * x7_1 * x10_1 * x11_1 * x12_1 * x15_2

```

to

```julia
c = coefficients[1] * (x1_1 * x5_1 * x6_1 * x7_1) * (x10_1 * x11_1 * x12_1 * x15_2)

```

---

_[View the full topic](https://discourse.julialang.org/t/allocations-in-large-function/7559)._
