Timeline for One-line functions that are called only once
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 14, 2011 at 0:58 | comment | added | WojonsTech | It really depends Most of the time no i do not unless i am getting the correct amount of payment to check if it does speed incress and other things like that. But in older compilers it was better to copy and paste it then to leave the compilere to figure it out 9/10. | |
| Sep 13, 2011 at 7:41 | comment | added | deprecated | +1 for alignment of the planets :) but your last sentence sounds totally nuts to me, do you really do that? | |
| Sep 13, 2011 at 6:07 | comment | added | WojonsTech | yeah it should get cleared out depending on a lot of facts. If its an interpated language the system will fall for the single line functions everytime unless you install something for cache which still may not do the trick. Now when it comes to compilers it just matters onn the day of the weak and the placment of the planates if the compiler will be your friend and clear out your little mess or if its going to thinkk you really need it. I remeber that if you know the exact amoutn of times a loop will always run its some times better to just copy and paste it that many times then to loop. | |
| Sep 13, 2011 at 5:59 | comment | added | deprecated | According to Stephen's answer this might not always happen (although trusting blindly in compilers' magic can't be good anyway) | |
| Sep 13, 2011 at 5:36 | history | answered | WojonsTech | CC BY-SA 3.0 |