|
Posted by Jerry Stuckle on 09/29/07 19:51
qwertycat@googlemail.com wrote:
> On Sep 29, 8:32 pm, qwerty...@googlemail.com 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@attglobal.net
==================
Navigation:
[Reply to this message]
|