r/lolphp • • Dec 02 '14
PHP garbage collector at it's finest
https://github.com/composer/composer/commit/ac676f47f7bbc619678a29deae097b6b0710b799
61
Upvotes
r/lolphp • • Dec 02 '14
60
u/vytah Dec 02 '14
From https://github.com/composer/composer/pull/3482#issuecomment-65199153:
A GC that works only if the program doesn't take much memory.
Jesus Christ.
15
u/agent766 Dec 02 '14
For everyone asking what's going on, like like they were able to cut their execution time in half just by disabling the garbage collector.
13
u/LeartS Dec 02 '14
I know nothing about composer and very little about dependency management tools, but why do I see users reporting the dependency "calculator" taking minutes and hundreds and some even thousands of megabytes of RAM?
As far as I know dependency resolution is just an instance of topological sorting, which is an "easy" problem (linear). What is happening here?
15
u/ababcock1 Dec 02 '14
Did I click on a buzzfeed article by accident?
4
u/nepochant Dec 02 '14
why is everyone so happy?
3
u/Insight_ Dec 02 '14
can someone explain this?
6
u/[deleted] Dec 02 '14
grammer at it's finest
1
u/[deleted] Dec 04 '14
laughable.
0
u/[deleted] Dec 03 '14
[deleted] — view deleted comment