How to render Mandelbrot Set faster?

前端 未结 6 1512
臣服心动
臣服心动 2020-12-20 07:34

I\'m currently drawing the Mandelbrot set pixel by pixel with PhotoImage and tkinter. I\'m using basically the algorithm directly with no modifications. Are there methods to

6条回答
  •  不思量自难忘°
    2020-12-20 07:38

    Pure python is not that fast for numeric code. The easiest way to speed things up would be to use PyPy. If that is not fast enough, vectorize your algorithms using numpy. If that is still not fast enough, use Cython, or consider rewriting it in C.

提交回复
热议问题