# What is meant by this tip for StaticArrays?

**URL:** https://discourse.julialang.org/t/what-is-meant-by-this-tip-for-staticarrays/109757
**Category:** Performance
**Created:** [February 5, 2024, 6:48pm UTC](https://discourse.julialang.org/t/what-is-meant-by-this-tip-for-staticarrays/109757 "2024-02-05T18:48:04Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [February 6, 2024, 8:21am UTC](https://discourse.julialang.org/t/what-is-meant-by-this-tip-for-staticarrays/109757/7 "2024-02-06T08:21:49Z")

</div>

Basically this thread here covers an example of the issue. It seems to only pop up when running multiple iterations of a simulation, i.e. using `BenchmarkTools` all allocations are zero etc.

> [@Profiling in VSCode returns some red bars with "Flag: GC" - what do they mean?](https://discourse.julialang.org/t/profiling-in-vscode-returns-some-red-bars-with-flag-gc-what-do-they-mean/109570/5):
>
> You commented the perfect time, was just testing something. Basically using TimerOutputs package I am tracking each function - I think there is a bug in the package somewhere, since I see a low number of allocs for functions when BenchmarkTools would say zero. But back on track the function updatexᵢⱼ! returns 0 allocs: But I get the GC flag for this function and two others as well; And I just don’t know why. Kind regards

When I went away from using StaticArrays and only used 1D vectors, this issue with GC for `updatexᵢⱼ!` (in the link) would be gone - but not when using StaticArrays. So I am suspecting some issue with StaticArrays here - perhaps from my use.

Kind regards

---

_[View the full topic](https://discourse.julialang.org/t/what-is-meant-by-this-tip-for-staticarrays/109757)._
