A Monday 25 October 2010 22:16:30 David Briant escrigué: > I'm wondering if it might be better creating a representation of the > attributes in memory using dicts. The code I posted takes about a > second at the moment and I'll need to do lots of lookups by > attributes and I'll end up with thousands of tables.
If you are going to repeat similar lookups in time, you may want to try fine-tuning the `NODE_CACHE_SLOTS` parameter that sets the maximum number of unreferenced nodes to be kept in memory. See: http://www.pytables.org/docs/manual/apc.html#id364527 Cheers, -- Francesc Alted ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users