On Wed, Jul 22, 2009 at 01:27:41PM -0400, Stef Telford wrote: >>> Hello Oleg, Everyone, >>> Sorry for the delay in replying.. "real life" sort of got in the >>> way. Deepest apologies for that. >> >> No problem. I understand the issue and feel your pain, sure. >> > *chuckles* this is kind of the problem with OS projects. We use them > almost 100% here at work but try to spend any -actual- time on improving > them and.. well.. yes.
Well, I have a lot of job, too; and another problem is that my mother-in-law is very ill so my wife and me have to sit beside her days and nights. > actually.. I -did- remark them out. As I said, all the evals do (I > -believe-) is to add the lambda into the python dictionary with a > specific name for getattr to find Not for getattr - for property... but that's a minor technical detail. > I have read in numerous places > that python's eval is hysterically slow [skip] > yes. evals appear to be > a 'bad' thing here :\ Well, those evals are in sqlmeta.addColumn and .addJoin methods, so they work once for every column in the table, but that's all. After the class has been created and populated - whatever you do with rows (class instances) - those evals are not executed. It could be that the functions the evals produced are slow - you've commented out all those evals and functions. That again require experimentation. And what is worse - those functions are hard to "fix" without much architectural changes. >> Perhaps those evals >> could be replaced with functools.partial >> > functools partial ? isn't this another name for decorators ? No, not at all - it is pure functional approach to a completely different problem. >>> (ps. I -do- have a large PNG of the system during a single 'page >>> impression'. It's about 7mb .. I can send it offlist if your >>> interested ?) >> >> A PNG of the system? What's that? I don't understand... >> > It's a PNG of the profiling of a single 'page'. I profiled it and then > passed it through gprof2dot ( > http://code.google.com/p/jrfonseca/wiki/Gprof2Dot ) let me know if you > want it.. it -is- a VERY large PNG though :) Ah, I see - gprof. I have never used it so I doubt I can understand the results. Oleg. -- Oleg Broytmann http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------------ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss