Welcome Guest, Not a member yet? Register   Sign In
How To Optimise Controller Execution Time
#1

Hi All,
Im trying to improve performance of an ap I created and at the moment looking into how best to improve Controller Execution Time.
I know the first thing would be to make sure Im not auto loading any libraries etc that are not relevant.
I also read that not posting the .php extension when calling a view file might help. Whats anyones view on that ? How would that help and if it does how much an improvement might we see.
Most page load up in less that 0.5
I would love to hear your tips and advice.
Reply
#2

Don't waste time on micro optimization. Find where the most time is spent and improve this part. Most of the time, the bottleneck will be the database queries. 

After you have optimized your database, you can also use Web page caching and Caching driver to improve performance.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#3

(This post was last modified: 07-12-2022, 12:21 AM by InsiteFX.)

You can also turn on php's Op Cache which will speed up your whole app.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

CI4 has Timer.
See https://codeigniter4.github.io/CodeIgnit...-the-timer
Reply




Theme © iAndrew 2016 - Forum software by © MyBB