I'm experiencing a very slow loading on my website.
At first I thought that maybe my code is slow, but after comparing my previous work to the same work, but migrating it to codeigniter I can say that the loading is now significantly slower.
Do you have any suggestion or ways to improve the performance of codeigniter?
CodeIgniter – Performance & speed comparison CodeIgniter-based applications are run through a functional test to determine the performance. Few projects have also demonstrated various response times based on the number of users. For example, the average response time to run the application with 100 users was 11.5 sec.
improve the performance of codeigniter
Performance depends slightly on framework, CI itself is one of the fastest.
Your project performance mostly depends on your code, how you use PHP, how you create queries and maintain JS code.
Short answer to your question:
This can help, may not, best way to avoid performance problems is to study how languages work, for example you can get valuable performance info about PHP here.
You can try this:
1. Compress HTML output, like this
2. Cache functions
$this->output->cache(60); // Will expire in 60 minutes
3. Enable Gzip Compression
$config['compress_output'] = TRUE;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With