From: Francesc A. <fa...@py...> - 2010-10-26 07:23:35
|
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 |