Author: Hubert Hesse <[email protected]>
Branch: stmgc-c7
Changeset: r844:24cee96c9c06
Date: 2014-06-02 23:39 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/24cee96c9c06/
Log: Remove more print to speed up translation
diff --git a/spyvm/interpreter.py b/spyvm/interpreter.py
--- a/spyvm/interpreter.py
+++ b/spyvm/interpreter.py
@@ -30,22 +30,24 @@
acquired = mylock.LOCK.acquire(False)
if acquired:
mylock.a = 2
- print "MY 2:", mylock.a
+ #print "MY 2:", mylock.a
time.sleep(2.5)
mylock.LOCK.release()
else:
- print "MY locked 10:", mylock.a
+ pass
+ #print "MY locked 10:", mylock.a
def yours_little_thread():
while True:
acquired = mylock.LOCK.acquire(False)
if acquired:
mylock.a = 10
- print "YOURS 10:", mylock.a
+ #print "YOURS 10:", mylock.a
mylock.LOCK.release()
time.sleep(4.0)
else:
- print "YOURS locked 2:", mylock.a
+ pass
+ #print "YOURS locked 2:", mylock.a
@@ -53,7 +55,7 @@
"""Bytecode not implemented yet."""
def __init__(self, bytecodename):
self.bytecodename = bytecodename
- print "MissingBytecode:", bytecodename # hack for debugging
+ #print "MissingBytecode:", bytecodename # hack for debugging
class IllegalStoreError(Exception):
"""Illegal Store."""
@@ -102,7 +104,7 @@
release = staticmethod(release)
def bootstrap():
- print "New thread reporting"
+ #print "New thread reporting"
interp = bootstrapper.interp
w_frame = bootstrapper.w_frame
@@ -112,7 +114,7 @@
assert isinstance(w_frame, model.W_PointersObject)
assert isinstance(w_stm_process, model.W_PointersObject)
bootstrapper.num_threads += 1
- print "Me is started", bootstrapper.num_threads
+ #print "Me is started", bootstrapper.num_threads
bootstrapper.release()
interp.interpret_with_w_frame(w_frame) #, may_context_switch=False
@@ -262,7 +264,7 @@
else:
s_context.push(nlr.value)
except STMForkException as fork_exception:
- print "Fork requested"
+ #print "Fork requested"
self.fork_interpreter_thread(fork_exception.w_frame,
fork_exception.w_stm_process)
def _get_adapted_tick_counter(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit