Multiprocessing takes higher execution time

Sibtey Mehdi sibteym at infotechsw.com
Thu Jan 8 06:18:10 CET 2009


Hello,

Please see the code I have send in attachment.
Any suggestions will highly appreciate.

Thanks and Regards,
Gopal
-----Original Message-----
From: Grant Edwards [mailto:invalid at invalid] 
Sent: Wednesday, January 07, 2009 8:58 PM
To: python-list at python.org
Subject: Re: Multiprocessing takes higher execution time

On 2009-01-07, Steve Holden <steve at holdenweb.com> wrote:

>> I use multiprocessing to compare more then one set of files.
>> 
>> For comparison each set of files (i.e. Old file1 Vs New file1)
>> I create a process,
>> 
>> Process(target=compare, args=(oldFile, newFile)).start()
>> 
>> It takes 61 seconds execution time.
>> 
>> When I do the same comparison without implementing
>> multiprocessing, it takes 52 seconds execution time.

> My first suggestion would be: show us some code. We aren't
> psychic, you know.

I am!

He's only got one processor, and he's just been bit by Amdahl's
law when P<1 and S<1.

There you have a perfectly "psychic" answer: an educated guess
camoflaged in plausible-sounding but mostly-bullshit buzzwords.
A better psychic would have avoided making that one falsifiable
statement (he's only got one processor).

-- 
Grant Edwards                   grante             Yow! Hello.  Just walk
                                  at               along and try NOT to
think
                               visi.com            about your INTESTINES
being
                                                   almost FORTY YARDS LONG!!

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: zipFilesComparision.txt
URL: <http://mail.python.org/pipermail/python-list/attachments/20090108/07f7f7cc/attachment.txt>


More information about the Python-list mailing list