5 ms·
The optimized version of the PyPY code is around 17x faster than the first version of the Python code. That makes your C++ code 8x faster than the PyPy code, bu
by megaman821 15y ago
The optimized version of the PyPY code is around 17x faster than the first version of the Python code. That makes your C++ code 8x faster than the PyPy code, but I consider any Python code within an order of magnitude of C++ good.
- dzorz 15y ago140x speedup was compared to optimized python version. I've tried it vs. pypy now (version 1.5) - it is 20x faster.
- StavrosK 15y agoWould it be possible for you to try ShedSkin on it?
- dzorz 15y agoI managed to compile the program using shedskin, but it throws a runtime error after it finds the first solution: ==== solution 1 ===== (0, 2, 5, 7, 9, 4, 8, 1, 3, 6) terminate called after throwing an instance of '__shedskin__::TypeError*' Aborted
- StavrosK 15y agoAh, that's too bad... Thanks for the effort, anyway.