Sorry, I overlooked the fact that the function checks if the value is
cached at the top, so, with the way you're running the benchmark, the
recursive calls don't result in more recursive calls.
Eliminating them gives performance increase of about 30%, but that's
nothing compared to adding annotations.

On Jul 23, 7:02 am, Oskar <oskar.kv...@gmail.com> wrote:
> Thanks for the replies everyone!
>
> About the Python version not being recursive: Oh yeah, didn't even
> think about that, but it shouldn't matter that much, or? With all the
> right type hints the clojure version should be much faster than the
> previous one even with recursion, right?
>
> On Jul 22, 10:51 pm, Dmitry Gutov <raa...@gmail.com> wrote:
>
>
>
>
>
>
>
> > In case the two replies above didn't drive the point home, the Python
> > version is not recursive (it uses results memoized in the data array).
> > So, not the same thing.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to