# Reducing time

**URL:** https://discourse.julialang.org/t/reducing-time/41721
**Category:** New to Julia
**Created:** [June 19, 2020, 11:29am UTC](https://discourse.julialang.org/t/reducing-time/41721 "2020-06-19T11:29:47Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)
#### Post date: [June 19, 2020, 6:34pm UTC](https://discourse.julialang.org/t/reducing-time/41721/4 "2020-06-19T18:34:58Z")

</div>

> [@Avec](#):
>
> most of the time, it did not show any allocation at all, but sometimes there appeared some

Probably the same as: [How to benchmark in-place functions? - #7 by rdeits](https://discourse.julialang.org/t/how-to-benchmark-in-place-functions/36493/7) (reallocation only happens sometimes, so you will rarely capture it from a single `push!` call).

As for why you ran out of memory, I’m not sure–the updated code should use less memory than the original. I would recommend checking carefully that the new and old code actually do the same thing.

---

_[View the full topic](https://discourse.julialang.org/t/reducing-time/41721)._
