What happens with the embedding of functions or procedures in Delphi (in particular, v2010 here, but I had the same problem with Turbo Delphi)?
There is some kind of disqualifier in the help, which may not always include the function due to βcertain criteriaβ, whatever that means.
But I found that in general, the selection functions (even very simple ones that have 3 or 4 lines of code) slow down the code, rather than speed it up.
Great idea - compiler option for "embed everything." I don't care if my exe grows by 50% or so to make it work faster.
Is there a way to get Delphi to actually embed the code, even if it did not decide to be installed by the compiler? That would really help. Otherwise, you need to do a "manual insertion" to duplicate the procedure code in several sections of your code with comments like "// inlining failed here, so if you change the following 5 lines, change them in the other 8 repeating places that this code exists "
Any tips here?
source
share