On Tue, Feb 10, 2009 at 8:57 PM, James Mills <prolo...@shortcircuit.net.au> wrote: > On Wed, Feb 11, 2009 at 2:21 PM, oyster <lepto.pyt...@gmail.com> wrote: >> My real purpose is to know "whether multi-core can help to improve the >> speed of a common function". But I know definitely that the answer is >> NO. > > As stated by others, and even myself, > it is not possible to just "automagically" > improve the execution speed of a single > function - let alone an application. > > Your problem must be capable of being divided up > into work units that can be parallelized. If this is not > possible, multiple cores (no matter how many you have) > -will not- help you.
See also Amdahl's Law -- http://en.wikipedia.org/wiki/Amdahl%27s_law Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list