|
Josh @ Dreamland
|
|
Reply #31 Posted on: February 24, 2010, 06:58:36 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Boy, I can't wait to add that.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
Josh @ Dreamland
|
|
Reply #33 Posted on: February 26, 2010, 01:12:24 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
...Nothing error related functions can do to stop or resume errors can ever make the code more efficient. Easy way is to use if's, copying code logically doubles size and makes inlining impossible.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
luiscubal
|
|
Reply #34 Posted on: February 26, 2010, 04:52:23 pm |
|
|
Joined: Jun 2009
Posts: 452
|
You could use an #if instead of regular ifs. I'm pretty sure that doesn't affect inlining. the misspelled version was kept for backwards compatibility. Unfortunately, it's a sad reality software development must face. These bugs are so trivial to find and fix, yet their consequences are so harsh that we must think twice before doing so and, in some cases, they are actually kept.
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
|
Reply #35 Posted on: February 26, 2010, 07:16:50 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
#if is how I was going to do it. But that's compile time, so it means we can't have such a function anyway.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #38 Posted on: March 02, 2010, 10:44:54 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Serp shortcuts. Makes a great optimizer.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|