osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiprocessing performance question


I don't have anything to add regarding your experiments with
multiprocessing, but:

Israel Brewster <ijbrewster at alaska.edu> writes:

> Which creates and populates an 800x1000 ?grid? (represented as a flat
> list at this point) of ?boxes?, where a box is a
> shapely.geometry.box(). This takes about 10 seconds to run.

This seems like the kind of task NumPy <URL:http://www.numpy.org/> is
designed to address: Generating and manipulating large-to-huge arrays of
numbers, especially numbers that are representable directly in the
machine's basic number types (such as moderate-scale integers).

Have you tried using that library and timing the result?

-- 
 \     ?You don't need a book of any description to help you have some |
  `\    kind of moral awareness.? ?Dr. Francesca Stavrakoloulou, bible |
_o__)                                              scholar, 2011-05-08 |
Ben Finney