I have an array of lets say 5000 values which involve a somewhat complex calculation (f64).
Would it be possible to calculate this many values into an array upon compilation?
The calculation does not depend on user input and is essentially entirely hardcoded.
I would run a for loop and save them to a vec normally, but can this be optimized?
This is probably overkill in my case, but I just wanted to know on how complex tasks rust compiler ca optimize.