Welcome Guest, Not a member yet? Register   Sign In
thousands of urls in routes.php make the application slower?
#9

[eluser]n0xie[/eluser]
[quote author="noctrum" date="1312495452"]routes are an array, which have to be loaded and parsed with every page request... So, yes, 7000 elements in that array will be slower than, say, 10 elements.[/quote]
Actually...

When using APC the array will be precached, hence no disk seek is needed. So from a load time/ parsing point of view it shouldn't matter.

Then again when it tries to actually match against this large dataset when it needs to route a request, then yes, it will take a lot longer.

I'm pretty sure the OP's problem can be solved by using .htaccess rewrite rules, but since he has shown us no examples, it seems to me he has solved the problem already.


Messages In This Thread
thousands of urls in routes.php make the application slower? - by El Forum - 08-05-2011, 02:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB