Thread: Efficiency!
View Single Post
  #5  
Old 01-07-2007, 04:30 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Tolnaftate2004 View Post
In all technicality, example 2 is the most efficient in that it is not evaluating everything that is passed from ChatBar.
When you think about it, it's very similar to if/else. Starts at the first case and checks. If it's the case, it performs it then ends the whole script. If not, goes down. Once it meets it's case, doesn't have to evaluate any others.For the serverside part, it's just reading the case "example": but i'm not even sure if it's doing that =p
Reply With Quote