Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@C0D4 0 memory limit only works in CLI SAPI
@Oktokolo @Lensflare It "only" loads whole DB tables into class properties in the constructor. The data is barely used.
I think these bastards tried to minimize DB calls thus "optimize" the "app"... -
hjk10157312y@PonySlaystation eh yeah that is not a valid usecase. That's just badly implemented cashing.
-
hjk10157312y@Lensflare where she data cannot be handled in a single pass but needs to be accessed all over the place. Sorting is such an example.
If memory is constrained but performance is not than it might be beneficial to save it as a stream to persistent storage in a more beneficial format and do the processing from there.
For example saving records to a database and just let a query sort it would be way better.
I've worked with environments where input data (patient data) was not allowed to hit the disk. That was challenging in dime aspects.
Related Rants
You know the PHP legacy code base is complete garbage when it requires a script memory limit of 1.5GB.
rant
phptsd
php
cmsofdoom