Welcome Guest, Not a member yet? Register   Sign In
Very slow performance when in the development environment
#1
Sad 
(This post was last modified: 09-11-2023, 10:27 PM by MrWhite.)

I'm experiencing very slow page loads when the app in "development" environment. In production, it's totally fine.
Any tips to make development environment fast? this slowness makes me miserable when developing my apps.

I think debugger is too heavy and causing therse issues.

Thanks.
Reply
#2

Disable Hot Reloading if you navigate to pages.
https://codeigniter4.github.io/userguide...-reloading
Reply
#3

It is better then to disable the "toolbar"


PHP Code:
// app/Config/Filters.php
    public array $globals = [
        'after' => [
            // 'toolbar',
        ],
    ]; 
Simple CI 4 project for beginners codeigniter-expenses
Reply
#4

Thank you very much both of you. it was very helpful.
Reply
#5

(This post was last modified: 02-02-2024, 10:42 PM by InsiteFX.)

If your on Windows remember there was a 0-day bug in the CPU'S that Windows fixed in the code for it.

There is a Registry key to turn it off.. Affects all CPU'S before Gen 14th.

This fix will lower the speed of the CPU to around 50%.
What did you Try? What did you Get? What did you Expect?

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

(09-12-2023, 12:33 AM)kenjis Wrote: Disable Hot Reloading if you navigate to pages.
https://codeigniter4.github.io/userguide...-reloading

So we should always remember to turn off Hot Reloading when navigating to other views?
I'm having this exact issue where it just loads forever when you try to access another page when it is active.
Just confirming, is this the expected behavior?

(Sorry if I'm not supposed to post it here, I'm kinda new to the forum stuff)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB