Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For fun I ported the C++ to Python and Cython without any kind of mathematical or programmatic optimizations. C++ was 0.5 seconds, then Python was 5.0 seconds. Cython, which was the same exact code as Python except sprinkled with "cdef long" to declare C types, was just 0.7 seconds.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: