# HG changeset patch # User sqwishy # Date 1361848792 28800 # Mon Feb 25 19:19:52 2013 -0800 # Node ID 30ea5621afba916c1ae140742af572ca574f67c7 # Parent 4b4320539978c20b0cdf4dc8a1ea2a6d3185d400 words are hard diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ ## Wat -In university I felt everyone should implement a mandelbro algorythm at least once before they graduate. So this was mine. It uses assembly, c, and Cython to create a Python module which can render mandelbrots, and Python to serve them over HTTP. +In university I felt everyone should implement a mandelbro algorithm at least once before they graduate. So this was mine. It uses assembly, C, and Cython to create a Python module which can render mandelbrots, and Python to serve them over HTTP. ## History -Durying my Fall semester in 2011 at university, for Computing 242 Machine Languages, I wrote a python script to generate a mandelbrot using PIL and served it using [Bottle](http://bottlepy.org/). The crux of the lab is a bit where I wrote part of the mandelbrot generation code in assembly in order to improve performance. +During my Fall semester in 2011 at university, for Computing 242 Machine Languages, I wrote a python script to generate a mandelbrot using PIL and served it using [Bottle](http://bottlepy.org/). The crux of the lab is a bit where I wrote part of the mandelbrot generation code in assembly in order to improve performance. In the following semester, I looked into porting my code from Python into C. However, I ran into a problem and I gave up for a few months before deciding to use Cython, instead of C, to improve performance. Initially, I switched to Python 3 for this. However, I found that this was a huge hindrance on speed, and switched back to 2.7. This was a successful and very rewarding experience. Rendering (and encoding to a PNG) an 800×600 (480,000 pixels) image took 3.33 seconds in pure python after optimizations and 0.285 seconds after being ported to Cython.