inline functions C++
#1
Posted 25 July 2012 - 03:53 PM
From what I read, if you are calling a function many times throughout your
code, it may be beneficial to have that function inline.
My question is, will making a function inline, benefit my code if it is only used once
but many times in a tight loop?
I also read that long complex functions are not good candidates for inline, but I'm unsure
if that was opinion or factt.
Anyway, the function is neither long nor complicated, but called in something similar to a msg loop.
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)
#2
Posted 25 July 2012 - 04:14 PM
- JScript likes this
#3
Posted 25 July 2012 - 05:45 PM
But I think the trend is to have a real AutoIt compiler, where at least the script is converted into C and after that, compiled!
I bet all the chips in AutoIt, no doubt!
João Carlos.
Edited by JScript, 25 July 2012 - 05:45 PM.
Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
#4
Posted 25 July 2012 - 05:47 PM
eMyvnE
#5
Posted 25 July 2012 - 05:52 PM
JScript this is not about AutoIt.
I'm sorry, at least I expressed my opinion, even that is not valid!
João Carlos.
Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
#6
Posted 25 July 2012 - 05:59 PM
Don't worry about it. We all say stupid things once in a while.
I'm sorry, at least I expressed my opinion, even that is not valid!
João Carlos.
eMyvnE
#7
Posted 25 July 2012 - 06:19 PM
It can benefit yes. The compiler may already inline the code or may not even if you tell it to. The inline keyword is a hint that the compiler may not need or may ignore entirely.
Thank you.
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users






