[pypy-commit] pypy reflex-support: the interface changed

cfbolz noreply at buildbot.pypy.org
Mon Jul 11 17:54:22 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: reflex-support
Changeset: r45459:7615354fff54
Date: 2011-07-11 17:54 +0200
http://bitbucket.org/pypy/pypy/changeset/7615354fff54/

Log:	the interface changed

diff --git a/pypy/jit/tl/pypyjit_demo.py b/pypy/jit/tl/pypyjit_demo.py
--- a/pypy/jit/tl/pypyjit_demo.py
+++ b/pypy/jit/tl/pypyjit_demo.py
@@ -5,10 +5,11 @@
 lib = cppyy.load_lib("../../module/cppyy/test/example01Dict.so")
 cls = cppyy._type_byname('example01')
 inst = cls.construct(-17)
+cppol = cls.get_overload("addDataToInt")
 
 t1 = time.time()
 res = 0
-for i in range(10):
-    res += inst.invoke("addDataToInt", i)
+for i in range(1000000):
+    res += inst.invoke(cppol, i)
 t2 = time.time()
 print t2 - t1


More information about the pypy-commit mailing list