Welcome Guest, Not a member yet? Register   Sign In
Get all Functions Names of All CONTROLLERS
#5

(02-03-2016, 11:14 AM)ivantcholakov Wrote: @kilishan

But PHP will parse all the controller files then. What do you think about scanning the sources with a regular expression?

That's true, it will parse them all, but I'm pretty sure that it, being a native method written in C, is likely to have better performance than a regular expression. While I think either way could work, I think the performance difference would be negligible between the two. And, since I don't know what the purpose is, I would personally go with the easier solution. Then, if performance was found to be an issue down the road, I would simply cache the results.
Reply


Messages In This Thread
RE: Get all Functions Names of All CONTROLLERS - by kilishan - 02-03-2016, 12:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB