This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
For 400 x 300 | |
Disabling Numba (i.e. Python looping, NOT numpy optimized) speed is 28.6 sec | |
Enabling Numba is 0.45 sec (further optimizations including removing some function calls gets this down to 0.23 sec) | |
Note that a Numpy version rt3.py at http://www.excamera.com/sphinx/article-ray.html is still fastest at ~0.11 sec. | |
Note that I have removed the checker pattern from the original code | |
""" |