Re: help please
Posted: Wed Sep 16, 2009 11:50 am
Being an interpreted language, bitwise operations shouldn't have much of an advantage in PHP.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Oh right...that's fair enough I guess. You have my apologies. But go to class next timemargaaa wrote:lol no! my course was (or is) audiovisual and multimedia. but what i really want is audiovisual, but this discipline was obligatory, and i couldn“t go to the classes.
thank you soooo much
What do you mean? You want to know how the code I posted works?Mirge wrote:Hope you're prepared to explain the code if you have to then lol
How weird, my results were the other way around. But yeah, I guess since there's such a tiny margin, it can go either way...ricehigh wrote:I found that bitwise comparison was sligtly faster than modulo operations
Sorry for my ignorance...but how would that make a difference?superdezign wrote:Being an interpreted language, bitwise operations shouldn't have much of an advantage in PHP.
That's the point. It shouldn't. I'm not saying that bitwise operations are at a disadvantage, just that they are not at an advantage. All operations are still at the mercy of the interpreter.jackpf wrote:Sorry for my ignorance...but how would that make a difference?superdezign wrote:Being an interpreted language, bitwise operations shouldn't have much of an advantage in PHP.
Was referring to OP loljackpf wrote:What do you mean? You want to know how the code I posted works?Mirge wrote:Hope you're prepared to explain the code if you have to then lol
Ahh I get you now. But surely PHP has to perform these operations in C? So...whatever's faster in C would be faster in PHP surely?superdezign wrote:That's the point. It shouldn't. I'm not saying that bitwise operations are at a disadvantage, just that they are not at an advantage. All operations are still at the mercy of the interpreter.jackpf wrote:Sorry for my ignorance...but how would that make a difference? :)superdezign wrote:Being an interpreted language, bitwise operations shouldn't have much of an advantage in PHP.
Ha. Yeah, that makes more sense :PMirge wrote:jackpf wrote:Mirge wrote:Was referring to OP lol
I didn't see you post any code in this thread?
Surely. Just marginally. :3jackpf wrote:Ahh I get you now. But surely PHP has to perform these operations in C? So...whatever's faster in C would be faster in PHP surely?
Oh lol I was looking for code that was written for the OPjackpf wrote:And the code I posted two posts above your last!!!
im not, but i will do my best to understand it!Mirge wrote:Hope you're prepared to explain the code if you have to then lol