# Making a Function FASTER!

**URL:** https://discourse.julialang.org/t/making-a-function-faster/50041
**Category:** New to Julia
**Tags:** question
**Created:** [November 12, 2020, 11:04am UTC](https://discourse.julialang.org/t/making-a-function-faster/50041 "2020-11-12T11:04:25Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [November 12, 2020, 11:12am UTC](https://discourse.julialang.org/t/making-a-function-faster/50041/3 "2020-11-12T11:12:53Z")

</div>

First, please read: [PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530)

Then, have you read through [Performance Tips · The Julia Language](https://docs.julialang.org/en/v1/manual/performance-tips/)?

It has a lot of good advice, for this code, [Performance Tips · The Julia Language](https://docs.julialang.org/en/v1/manual/performance-tips/#man-performance-views) should be especially useful.

> [@marianoarnaiz](#):
>
> Also. Can anyone tell me where is it faster for Julia to open a Function? Inside the code (beginning or end) or outside (in a separate file)?

It’s a bit unclear to me what this means. Putting code inside functions is a good idea, yes. Where the code exists (if it is in e.g. a file or the REPL) doesn’t matter for the performance of it.

---

_[View the full topic](https://discourse.julialang.org/t/making-a-function-faster/50041)._
