Re: PHP CLI & Forking children
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 15:51:53 -0400
qwertycat@xxxxxxxxxxxxxx wrote:
On Sep 29, 8:32 pm, qwerty...@xxxxxxxxxxxxxx wrote:Instead of writing a PHP script that downloads 2 million headers from
a newsgroup in a single connection (which will cause PHP to crash
anyway as it'll reach 500MB+ memory usage), I thought it would be
better to launch 4 processes do download it in chunks of 50,000
headers - with 4 connections to the same NNTP server.
I admit I should be using Perl or C for these tasks, but I know PHP
and I'm used to using its functions.
Nothing wrong with using PHP for this. It will be slower than a compiled language like C, but most of your time will be spent waiting on I/O anyway. So it shouldn't be that much slower.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- PHP CLI & Forking children
- From: qwertycat
- Re: PHP CLI & Forking children
- From: Andy Hassall
- Re: PHP CLI & Forking children
- From: qwertycat
- Re: PHP CLI & Forking children
- From: Jerry Stuckle
- Re: PHP CLI & Forking children
- From: qwertycat
- Re: PHP CLI & Forking children
- From: qwertycat
- PHP CLI & Forking children
- Prev by Date: Re: PHP CLI & Forking children
- Next by Date: Re: PHP CLI & Forking children
- Previous by thread: Re: PHP CLI & Forking children
- Next by thread: Re: PHP CLI & Forking children
- Index(es):
Relevant Pages
|