What's Faster: Hex Math or Int Math? 11
Morbaal writes "I am working on a project where we have to have a minimal ammount of load on the db server. So my question is should I submit hex data for the server to compute or int data or does it matter at all?" Clearly this depends on which version of SQL Server you're using.
Details... (Score:1)
Re:my goodness (Score:2)
Duh - neither (Score:2)
Binary.
But my guess is that it's not the math that's causing the load on your database server. Try moving the, er, adult website to a different machine than the database server.
I dont know... (Score:1)
Re:I dont know... (Score:1)
I've gotta lay off the whisky.
Re:Depends.... (Score:1)
Kill... (Score:3)
Actually, if you compress it first with lzip, you'll generate a lot less network traffic, and thus less server load.
Sheesh... As more and more of these things get posted, I'm starting to gain an appreciation for the heaps of shit that the slashdot editors wade through.
43rd Law of Computing: Anything that can go wr
It all depends... (Score:3)
(Geez, I can no longer tell if this are actual "Ask Slashdot" submissions, or if they're ALL April Fool's)
Tongue-tied and twisted, just an earth-bound misfit, I
Doesn't make a difference (Score:1)
Depends.... (Score:2)
If you are CODING the database server and talking about data in the code, during compiling it's translated to binary. so it doesn't really matter there either. In the end, it's all 1s and 0s. The only place it could be considered faster to use Hex is if you are doing translations from int to string. In this case, going from binary to hex is faster than binary to decimal (due to the base 16 again) but remember, only by a clock cycle or two.
Hope that helped.
--
He had come like a thief in the night,
It's as easy as counting (Score:1)
-----