Is it possible to just get numpy arrays back from a query, so that when I index then in cython code I can get indexing at c speed?
Vineet On Mon, Aug 16, 2010 at 7:24 AM, Francesc Alted <fal...@pytables.org> wrote: > 2010/8/15, Vineet Jain <vinjv...@gmail.com>: >> While looking at the code I noticed the function: >> >> tables.tableExtension.getNestedFieldCache >> >> does a try except block on every row lookup like row[0], row[1]. Is >> that not going to be rather slow? > > In general, a ``try: except` ` block is faster than a `hasattr` or > `has_key` when the key exists. As I wanted to favor positive cases > (we are dealing with a cache after all), I've chosen the former. > > Cheers, > > -- > Francesc Alted > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Pytables-users mailing list > Pytables-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pytables-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users