Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r244:b4c9408aaf04
Date: 2014-03-31 08:42 +0200
http://bitbucket.org/pypy/benchmarks/changeset/b4c9408aaf04/

Log:    As usual, this hack helps for now -- but not enough in this case

diff --git a/multithread/raytrace/raytrace.py b/multithread/raytrace/raytrace.py
--- a/multithread/raytrace/raytrace.py
+++ b/multithread/raytrace/raytrace.py
@@ -126,11 +126,13 @@
 
 
 def task(x, h, cameraPos, objs, lightSource):
+    time.sleep(0)    # XXX
     with atomic:
         for y in range(h):
             ray = Ray(cameraPos,
                       (Vector(x/50.0-5,y/50.0-5,0)-cameraPos).normal())
             trace(ray, objs, lightSource, 10)
+    time.sleep(0)    # XXX
 
 futures = []
 def future_dispatcher(ths, *args):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to