On Wed, 20 Jun 2012 16:35:47 -0400, Michael Bayer <[email protected]> wrote: > yeah this came out spectacularly, try out the patch at: > > http://www.sqlalchemy.org/trac/attachment/ticket/2516/2516.patch > > great idea thanks for bringing it up. it should help performance as there's > less overhead when instance-level events aren't present.
Great, thanks very much. I will give it a try soon. I'm not sure what is considered embedded these days, but yes this ap is not on a server and is operating in a somewhat memory-constrained environment, and we are looking for ways to reduce the overhead. I picked on _ListenerCollection because it was the class with the largest instance count in an object dump, and all those empty sets and lists looked redundant. And you are right about the __slots__ of course: someone on an earlier memory reduction pass added that as a local patch and I just didn't notice that fact. --RDM -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
