4 Mar
2002
4 Mar
'02
7:08 a.m.
Anthony Baxter wrote:
seb bacon wrote [CallProfiler] FWIW, my own opinion is that it should not take the 'MonkeyPatch' approach.
Why? Any other approach means a slowdown in the Zope code regardless of whether profiling is turned on or off... monkeypatching means you end up with zero slowdown when not profiling.
...and in this case, I wouldn't call it MonkeyPatch-ing, just taking advantage of Python's extremely dynamic nature for a very good cause. cheers, Chris