3 ms·
Cython would make sense in this context (~19 seconds for me).
by rch 11y ago
Cython would make sense in this context (~19 seconds for me).
- markikka 11y agoUsing Numba (you just adnotate the function with @numba.jit) speeds it up from 51 sec to 0.46 for me
- rch 11y agoBrilliant. ~0.49 seconds for me too.
- lake99 11y agoOr even Pypy. This is how they measure up: % python2 fibtime.py elapsed time: 83.330840 seconds % python3 fibtime.py elapsed time: 89.325043 seconds % pypy3 fibtime.py elapsed time: 5.799757 seconds
- igouy 11y agohttp://pybenchmarks.org/ http://pybenchmarks.org/
- igouy 11y ago>>would make sense in this context<< Not really -- "I don’t want to start an argument about the speed of SBCL vs C++ here, my point is that CClasp has come a long way from being hundreds of times slower than C++ to within a factor of 4."
- rch 11y agoI meant only that Cython results would tell me more about relative CClasp performance than a comparison CPython does. I didn't want to get into the optimization game either, but I'm happy someone here reminded me to try numba.
- ngoldbaum 11y agoShould be a lot faster with type annotations.