I have a question about the performance of IP and FP. Let's say I have a function to compute nth Fibonacci number.
In imperative programming I have a choice to computing the nth Fibonacci number using iterative way, recursion, or dynamic programming. Of course iterative way and dynamic programming will perform better compared to recursion asymptotically.
In functional programming, assume there is no state involved, then I can only do it in recursion way.
In this case, doesn't that mean functional programming will always perform as equal or slower compared to imperative programming in terms of efficiency (asymptotically)?
How does real world functional programming deal with this issue?