Re: [dabo-users] Add From Data Environment (Not Responding)

Author: Paul McNett

Posted: 2012-04-12 at 17:17:28

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: Dabo-users@leafe.com

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/4F875478.8060207@ulmcnett.com

©2012 Paul McNett