[pypy-commit] extradoc extradoc: this kind of manul optimization is probably a bit too obscure and it actualy hurts the Fix16 performace

hakanardo noreply at buildbot.pypy.org
Wed Jun 15 08:32:17 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: extradoc
Changeset: r3684:3d0ca25f69cc
Date: 2011-06-15 08:35 +0200
http://bitbucket.org/pypy/extradoc/changeset/3d0ca25f69cc/

Log:	this kind of manul optimization is probably a bit too obscure and it
	actualy hurts the Fix16 performace

diff --git a/talk/iwtc11/benchmarks/sqrt/sqrt.py b/talk/iwtc11/benchmarks/sqrt/sqrt.py
--- a/talk/iwtc11/benchmarks/sqrt/sqrt.py
+++ b/talk/iwtc11/benchmarks/sqrt/sqrt.py
@@ -1,7 +1,7 @@
 def sqrt(y, n=10000):
     x = y / 2
     while n > 0:
-        assert y > 0 and x > 0
+        #assert y > 0 and x > 0
         n -= 1
         x = (x + y/x) / 2
     return x


More information about the pypy-commit mailing list