From: Marcelo M. <mm...@ac...> - 2006-02-17 05:45:31
|
John Lenz wrote: >On Wed, January 25, 2006 9:33 pm, Marcelo Matus said: > > > >>i.e, for "normal" modules, where there is no circular type referencing, >>or mixed forward class declarations, >>there should be no performance penalty, and the linear search only >>occurs when otherwise you would end >>with a bad type systems, so, it seems a minimal cost to me. >> >> > >Ok, I'll take a closer look. Sorry about the delay, my computer died on me. > > > >>It would be interesting if you can test with your example of 6000 types >>and check if there is >>a change in the runtime performance with the last modification. Also, I >>guess you should add that >>test to the test-suite, so, we could monitor if any other change in the >>affects or breaks >>the runtime library. >> >> > >Actually, the code (and the results) are still on my web page at >http://www.cs.wisc.edu/~lenz/swig.html > >check out http://www.cs.wisc.edu/~lenz/swig/hugemod.txt > >I'm still trying to get my development environment back, so if you want to >commit that feel free... > >John > > > Ok, here are some numbers using 1.3.27: $ time python hugemod_runme.py real 0m10.648s user 0m10.374s sys 0m0.233s and using 1.3.27 with -modern: time python hugemod_runme.py real 0m9.138s user 0m8.740s sys 0m0.216s and using 1.3.28: $ time python hugemod_runme.py real 0m8.491s user 0m8.247s sys 0m0.209s and using 1.3.28 with -O option: $ time python hugemod_runme.py real 0m7.190s user 0m6.930s sys 0m0.208s Marcelo |