mrbean Posted August 14, 2012 Share Posted August 14, 2012 If I convert my code to hexadecimal or octal radix, would the browser run this code faster? Or is it the same like normal js code? Quote Link to comment https://forums.phpfreaks.com/topic/267063-enhance-speed-using-hexadecimal-or-octal-radix-code/ Share on other sites More sharing options...
xyph Posted August 14, 2012 Share Posted August 14, 2012 I'm not sure what you mean, but my guess is no. Quote Link to comment https://forums.phpfreaks.com/topic/267063-enhance-speed-using-hexadecimal-or-octal-radix-code/#findComment-1369307 Share on other sites More sharing options...
mrbean Posted August 14, 2012 Author Share Posted August 14, 2012 I'm not sure what you mean, but my guess is no. What do you think I mean? Quote Link to comment https://forums.phpfreaks.com/topic/267063-enhance-speed-using-hexadecimal-or-octal-radix-code/#findComment-1369352 Share on other sites More sharing options...
Christian F. Posted August 14, 2012 Share Posted August 14, 2012 Read these two links: http://www.catb.org/~esr/faqs/smart-questions.html http://slash7.com/2006/12/22/vampires/ Quote Link to comment https://forums.phpfreaks.com/topic/267063-enhance-speed-using-hexadecimal-or-octal-radix-code/#findComment-1369369 Share on other sites More sharing options...
mrbean Posted August 14, 2012 Author Share Posted August 14, 2012 Read these two links: http://www.catb.org/~esr/faqs/smart-questions.html http://slash7.com/2006/12/22/vampires/ {{flame removed}} Quote Link to comment https://forums.phpfreaks.com/topic/267063-enhance-speed-using-hexadecimal-or-octal-radix-code/#findComment-1369433 Share on other sites More sharing options...
kicken Posted August 15, 2012 Share Posted August 15, 2012 I'm assuming you mean converting all your numeric constants from 9876 (decimal) to 0x2694 (hex) or 023224 (octal) notation. If that's what you mean then no, your script will not run any faster as it all gets compiled down to the same stuff anyway. All you'd do with a change like that is make your script harder to read/debug. Read these two links: http://www.catb.org/~esr/faqs/smart-questions.html http://slash7.com/2006/12/22/vampires/ /agree'ed @op you need to learn to ask a better question rather than just be an ass to people. Quote Link to comment https://forums.phpfreaks.com/topic/267063-enhance-speed-using-hexadecimal-or-octal-radix-code/#findComment-1369491 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.