RE: [PHP] Very Large text file parsing
| From: | Per Jessen | Date: | Thu, 20 Sep 2007 13:00:15 +0000 |
| Subject: | RE: [PHP] Very Large text file parsing | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262292@lists.php.net to get a copy of this message | ||
Paul Scott wrote:
> On Thu, 2007-09-20 at 12:50 +0100, Edward Kay wrote:
>> In addition to Martin's good suggestions (and also assuming you're
>> running php-cli via cron), you could use nice to stop it consuming
>> too many resources:
>>
>
> This is the current approach that I am taking, was just really
> wondering if there was some kind of voodoo that would speed things up
> a bit.
Given that you've got significant IO on both sides (file in, database
out), multi-threading it could work wonders. Not sure how you'd go
about that in PHP though.
/Per Jessen, Zürich