Welcome Guest, Not a member yet? Register   Sign In
CI-4.17 - Why the extra 300Kb memory in Production?

(This post was last modified: 01-13-2022, 10:25 PM by John_Betong.)

I have just uploaded CI-4.17 and most surprised at the differences in memory consumption:

749,136 bytes => memory_get_usage()
753,968 bytes => memory_get_peak_usage()

1,023,616 bytes => memory_get_usage()
1,286,296 bytes => memory_get_peak_usage()

What happened to the "Lean and mean PHP framework"?

I checked the memory usage of the Welcome page with debug toolbar:
v4.1.5 1.623MB
v4.1.7 1.623MB


I think the big difference is because I modified CI-4.15 Production mode by disabling Debug as it is not required.

PHP error_reporting and logging is perfectly adequate when online and using Production.

I will check later when back on the desktop.

@John_Betong another consideration is that the Kint debug tool had a major update. I don’t know what all changed between versions 3 & 4 but that could definitely affect the overall consumption despite CI4 not having any big contributors.

Theme © iAndrew 2016 - Forum software by © MyBB