I don't think places outside the Deferred system would benefit much from using it, unless of course you are loading more than 100k objects per request (which means you have a bigger problem)
I don't think places outside the Deferred system would benefit much from using it, unless of course you are loading more than 100k objects per request (which means you have a bigger problem)
gc_disable only affects the garbage collector used to detect and dispose of circular references between objects.
For long lived objects which live for the entire request, it is worthless. And the current php implementation is in fact is actively harmful if you have lots of things allocated, because the threshold which triggers this GC isn't configurable or self-tuning.
gc_disable only affects the garbage collector used to detect and dispose of circular references between objects.
For long lived objects which live for the entire request, it is worthless. And the current php implementation is in fact is actively harmful if you have lots of things allocated, because the threshold which triggers this GC isn't configurable or self-tuning.
Which goes back to what I was saying: Deferred. I can see circular reference happening much more often than your typical page rendering. You shouldn't need to turn this off for normal web requests (and if you do, you probably need to review your code)