add support for multi-inheritance at the python side and performance tunings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7819 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b7a257a090
commit
3c4fbce9de
9 changed files with 426 additions and 174 deletions
54
Examples/test-suite/python/profiletestc_runme.py
Normal file
54
Examples/test-suite/python/profiletestc_runme.py
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
import _profiletest
|
||||
#import profiletest
|
||||
|
||||
pa = _profiletest.new_A()
|
||||
pb = _profiletest.new_B()
|
||||
fn = _profiletest.B_fn
|
||||
destroy = _profiletest.delete_A
|
||||
i = 50000
|
||||
a = pa
|
||||
while i:
|
||||
a = fn(pb,a) #1
|
||||
destroy(a)
|
||||
a = fn(pb,a) #2
|
||||
destroy(a)
|
||||
a = fn(pb,a) #3
|
||||
destroy(a)
|
||||
a = fn(pb,a) #4
|
||||
destroy(a)
|
||||
a = fn(pb,a) #5
|
||||
destroy(a)
|
||||
a = fn(pb,a) #6
|
||||
destroy(a)
|
||||
a = fn(pb,a) #7
|
||||
destroy(a)
|
||||
a = fn(pb,a) #8
|
||||
destroy(a)
|
||||
a = fn(pb,a) #9
|
||||
destroy(a)
|
||||
a = fn(pb,a) #10
|
||||
destroy(a)
|
||||
a = fn(pb,a) #1
|
||||
destroy(a)
|
||||
a = fn(pb,a) #2
|
||||
destroy(a)
|
||||
a = fn(pb,a) #3
|
||||
destroy(a)
|
||||
a = fn(pb,a) #4
|
||||
destroy(a)
|
||||
a = fn(pb,a) #5
|
||||
destroy(a)
|
||||
a = fn(pb,a) #6
|
||||
destroy(a)
|
||||
a = fn(pb,a) #7
|
||||
destroy(a)
|
||||
a = fn(pb,a) #8
|
||||
destroy(a)
|
||||
a = fn(pb,a) #9
|
||||
destroy(a)
|
||||
a = fn(pb,a) #20
|
||||
destroy(a)
|
||||
i -= 1
|
||||
|
||||
_profiletest.delete_A(pa)
|
||||
_profiletest.delete_B(pb)
|
||||
Loading…
Add table
Add a link
Reference in a new issue