From: Vincent Fourmond Date: 2007-01-16T23:16:14+09:00 Subject: Re: efficient access to a large int32 array Martin DeMello wrote: > I have a file that is a dump of a large array of 32-bit unsigned ints > (bitvectors actually). All I need is to load this into memory and have > fast, efficient access to the array members, and a few bitmasking > operations - the array will never be written to, and ideally should > not need to be bounds-checked. Should I be looking at something like > mmap or narray to do this, or would I be better served by a custom C > extension? I would write my own extension and use mmap (if you're under linux) to save trouble and memory. That's just a question of a few hours, and you'll get high performance. Cheers, Vince, in a posting mood today... -- Vincent Fourmond, PhD student http://vincent.fourmond.neuf.fr/