Re: Re: [PHP-DEV] [RFC] Generators
| From: | Morgan L. Owens | Date: | Fri, 24 Aug 2012 02:44:44 +0000 |
| Subject: | Re: Re: [PHP-DEV] [RFC] Generators | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62438@lists.php.net to get a copy of this message | ||
On 2012-08-23 02:03, Lester Caine wrote:
I accept your point about not caring about how the data was created, but on the other side, if the data creation is handling a lot more data than the consumer needs there is an amount of processing time that is wasted. The quick way of doing something does not equate to the best way of doing it. Only if the producer does work unnecessary for determining the next datum required by the consumer. It doesn't have to create all the data at once (if it did you might as well stuff it all in a big array and use that).