CodeIgniter Forums
Benchmarking Ci4 router - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forum-31.html)
+--- Thread: Benchmarking Ci4 router (/thread-74335.html)

Pages: 1 2


RE: Benchmarking Ci4 router - tony.a - 09-12-2019

Main problem for me in ci4 (or i cannot see the solution) is to use the router class and router collection as "subrouter" to split the routes
Scenario
Dinamic Front router (load routes from modules)
Controller
Method a
Method b
Method route
Another router and route collection instance

The handle () method should accept arguments handle(uri,method )
Checkroutes method should optionally detect language and passed as argument
Discover routes should take file array as arguments and should be public
getHTTPVerb and sethttpverb out and passed as arguments
A Cache routes (routescollection ?) Mechanism
Load cached routes array_merge routes without add every routes
Thanks .


RE: Benchmarking Ci4 router - tony.a - 09-13-2019

https://twenty-tech.com/laravel-quick-performancepart-1/
https://akrabat.com/slims-route-cache-file/
Allow  router and subrouter to cache and load all routes  at once