Welcome Guest, Not a member yet? Register   Sign In
What would be faster? (setting rules individually or using arrays?)
#1

[eluser]RS71[/eluser]
Hello

Could somebody help me out? I was wondering what would be faster (performance): setting rules individually or passing them to an array?

I have no idea but I'm guessing using many set_rules would result in more 'POST > 0' checks but using the array method would result in 'foreach's.

Thanks in advance.
#2

[eluser]TheFuzzy0ne[/eluser]
It's very hard to tell. In fact I don't even think there would be any noticeable improvement on performance unless you had thousand of rules or more to add. Even then I doubt there would be much difference. There are so many variables to take into account, however.

You're best bet would be to carry out some tests and perhaps let us know your findings? I know that I, for one, would be interested to know.




Theme © iAndrew 2016 - Forum software by © MyBB