November 25, 2020 at 12:03 am
Actually, in Assembler comparison of 2 values is implemented via deducting of one value from another.
So, if you intuitively replace comparison with deduction then it means that you have some die hard habits from those old golden times.
🙂
_____________
Code for TallyGenerator
November 25, 2020 at 9:45 am
Actually, in Assembler comparison of 2 values is implemented via deducting of one value from another.
So, if you intuitively replace comparison with deduction then it means that you have some die hard habits from those old golden times.
🙂
Guilty as charged
😎
Some habits just won't die 😉
November 25, 2020 at 10:46 pm
You guys must be suffering from Covid or something. You guys know better than to banter about with claims of performance without demonstrative code to prove your position. Especially since there have been claims of performance and claims of non-performance and claims of so little performance gain as to not be worth it, I think that all ya'all should put together a test and prove what you're saying. A million rows is a trivial test nowadays so do one with a million rows and one with 10 million rows and then we'll know for sure.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 26, 2020 at 3:44 am
You guys must be suffering from Covid or something. You guys know better than to banter about with claims of performance without demonstrative code to prove your position. Especially since there have been claims of performance and claims of non-performance and claims of so little performance gain as to not be worth it, I think that all ya'all should put together a test and prove what you're saying. A million rows is a trivial test nowadays so do one with a million rows and one with 10 million rows and then we'll know for sure.
I'd be really surprised if it was enough of a difference in performance that it could even be measured (except that the subtraction method may be noticeably slower than the IF ... ANDs method).
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
Viewing 4 posts - 31 through 33 (of 33 total)
You must be logged in to reply to this topic. Login to reply