tag:blogger.com,1999:blog-9266717.post1130467121775106715..comments2023-05-22T10:01:23.167-03:00Comments on Only Python: Profiling adventures [and cython]: basic profilingAndré Robergehttp://www.blogger.com/profile/08131391818998844540noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-9266717.post-18050408154527266312010-01-17T13:43:12.599-04:002010-01-17T13:43:12.599-04:00Typo mentioned by Ned has been fixed.Typo mentioned by Ned has been fixed.André Robergehttps://www.blogger.com/profile/08131391818998844540noreply@blogger.comtag:blogger.com,1999:blog-9266717.post-85557662418849592392010-01-17T13:41:24.901-04:002010-01-17T13:41:24.901-04:00Ned: I make a reference to Aptus in the next pos...Ned: I make a reference to Aptus in the next post (currently in draft form). Regarding cython speed versus your code: it is not as fast, as far as I can tell. However, in Aptus you seemed to use some clever algorithm whereas I just does something very straigthforward.<br /><br />As for the last line comparison: you are right; it is a typo. I still want to do one more comparison (instead of returning True) just in case ... This will be changed when I add a coloring scheme.André Robergehttps://www.blogger.com/profile/08131391818998844540noreply@blogger.comtag:blogger.com,1999:blog-9266717.post-24224462128854334382010-01-17T13:35:25.721-04:002010-01-17T13:35:25.721-04:00I'm very interested in this series of posts, h...I'm very interested in this series of posts, having done my own Python mandelbrot viewer (with the core computation in C, plus lots of algorithmic tweaking): http://nedbatchelder.com/code/aptus/<br /><br />I'm looking forward to the Cython results!<br /><br />I wonder why you are doing one final limit comparison even when you max out on iterations? In your last code example, line 17 doesn't need a comparison, it should just return True. (If you do keep the comparison, it should be against 4, not 2).Anonymousnoreply@blogger.com