1 (edited by orlandu63 2006-12-26 07:48)

Topic: When comparing strings use triple equal signs instead of double.

Triple equal signs compare strings faster than double equal signs. There are about 300 cases of using double equal signs when comparing strings in the script as a whole and if you replace all those with triple equal signs, processing will become faster and will allow even more simultaneous queries. You can do this easily by using a text editor that has a replace in all documents feature and replacing something like == ' to === ' and then !=== ' to !== '.

Sorry for my bad wording; it's 3AM and I'm exhausted. By the way, I love your script :thumbsup:

Also, a 'Disable View Count' feature would be nice since the views aren't unique which kinda defeats the point in the first place.

Re: When comparing strings use triple equal signs instead of double.

orlandu63 wrote:

Also, a 'Disable View Count' feature would be nice

http://dev.punbb.org/ticket/32

Re: When comparing strings use triple equal signs instead of double.

It might be a bad idea to do so in some places though.

Re: When comparing strings use triple equal signs instead of double.

I wouldn't go so far as to say that it will make PunBB dramatically faster, but it's certainly something we want to keep in mind smile