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

Reply via email to