Does using separate functions slow down code? [SOLVED]
Does using separate functions slow down code?
If I were to allocate parts of my strategy code to functions, would that slow down the calculation time? Let's say it's a pretty simple strategy and you move parts of the code to functions with all things pretty much being equal, what percent effect would this have on speed?
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: Does using separate functions slow down code?
No, it won't slow down your strategy.If I were to allocate parts of my strategy code to functions, would that slow down the calculation time? Let's say it's a pretty simple strategy and you move parts of the code to functions with all things pretty much being equal, what percent effect would this have on speed?
When MultiCharts compiles your code, the process integrates everything into one operation.