On 4/12/12 3:09 PM, Ed Leafe wrote:
>       Looking at this, I'm wondering if it could be sped up a bit using a 
> list comp:
>
> self._dataEnv = dict([(tb, dict([(fld[0], {"type": fld[1], "pk": fld[2]})
>       for fld in crs.getFields(tb)]))
>       for tb in crs.getTables()])

I think that could speed it up quite a bit, but is a generator expression 
possible 
here? Because then we only consume RAM for the current iteration which should 
speed 
things up if the performance problem is with Python needing to continuously ask 
the 
OS for more vram.

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to