Popular recipes by Martin Schoepf http://code.activestate.com/recipes/users/4185283/2013-02-17T10:58:13-08:00ActiveState Code RecipesPerformance boost with metaclasses (Python) 2013-02-17T10:58:13-08:00Martin Schoepfhttp://code.activestate.com/recipes/users/4185283/http://code.activestate.com/recipes/578460-performance-boost-with-metaclasses/ <p style="color: grey"> Python recipe 578460 by <a href="/recipes/users/4185283/">Martin Schoepf</a> (<a href="/recipes/tags/metaclass/">metaclass</a>, <a href="/recipes/tags/performance/">performance</a>). </p> <p>Consider a highly dynamic system where a lot of objects are created and destroyed. If the objects are complex and have a lot of default values the following recipe may improve the performance. The more default values you have the more you will gain from it. </p>