regarding threading

Neil Hodgson nhodgson at bigpond.net.au
Tue Oct 14 17:23:36 EDT 2003


Andrew Dalke:

> If you don't have a multiple processor machine,
> using threads won't make a difference.  How many
> processors do you have on a machine?

   There may be some advantage in overlapping computation with I/O although
it would depend on the relative costs of the search and I/O. With a 3.5
Gigabyte file the problem may be I/O bound. In which case splitting the file
onto multiple disks and using 1 thread for each split may increase
performance.

   Neil






More information about the Python-list mailing list