[pypy-svn] r62538 - pypy/trunk/pypy/lang/gameboy
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Mar 4 18:16:46 CET 2009
Author: cfbolz
Date: Wed Mar 4 18:16:44 2009
New Revision: 62538
Modified:
pypy/trunk/pypy/lang/gameboy/gameboy_implementation.py
Log:
Kill some very funny code. This is one of the largest sources of allocations in
the gameboy at runtime.
Modified: pypy/trunk/pypy/lang/gameboy/gameboy_implementation.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/gameboy_implementation.py (original)
+++ pypy/trunk/pypy/lang/gameboy/gameboy_implementation.py Wed Mar 4 18:16:44 2009
@@ -121,9 +121,7 @@
self.draw_ascii_pixels()
def draw_pixels(self):
- str = ""
for y in range(self.height):
- str += "\n"
for x in range(self.width):
color = VideoDriverImplementation.COLOR_MAP[self.get_pixel_color(x, y)]
RSDL_helper.set_pixel(self.screen, x, y, color)
More information about the Pypy-commit
mailing list