# Suggestions needed: speed up optimization

**URL:** https://discourse.julialang.org/t/suggestions-needed-speed-up-optimization/47449
**Category:** Performance
**Created:** [September 28, 2020, 11:25pm UTC](https://discourse.julialang.org/t/suggestions-needed-speed-up-optimization/47449 "2020-09-28T23:25:04Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![DShiu](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DShiu](https://discourse.julialang.org/u/DShiu)
#### Post date: [October 1, 2020, 9:08pm UTC](https://discourse.julialang.org/t/suggestions-needed-speed-up-optimization/47449/18 "2020-10-01T21:08:10Z")

</div>

Yeah, thanks for pointing this out! So I guess the declaration forced me to be careful with input/output types and this indirectly helped performance.

I learned this fact from reading disscussion [ForwardDiff: Using on functions that are defined on floats64 - #3 by IljaK91](https://discourse.julialang.org/t/forwarddiff-using-on-functions-that-are-defined-on-floats64/18226/3), although I haven’t figured out how to make autodiff work yet 🙂

---

_[View the full topic](https://discourse.julialang.org/t/suggestions-needed-speed-up-optimization/47449)._
