composer dependencies use lot of memory |
Hi,
I am new to composer / ci4, so I have a question about performance. My first CI4 app normally uses 7-8 MB ram (on debug bar). Then I installed 2 libraries with "composer require". Now the memory consumption is 40 MB+ on all of my pages. But I dont use these 2 libraries globally, just only in some of my admin pages (for Google Drive uploads). So the question is why all of my pages (which dont using these libraries) using so much memory? Thanks for the help.
It is not usually expected that simply installing the libraries will increase memory usage that much.
However, if it has actually increased, then the added libraries are probably consuming memory. It can happen if there is additional processing that is performed on every request, every time. For example, if there is "autoload.files", the files are always loaded. https://github.com/codeigniter4/shield/b...r.json#L56 |
Welcome Guest, Not a member yet? Register Sign In |