13 lines
590 B
Markdown
13 lines
590 B
Markdown
# pyparkerwords
|
|
|
|
Context:
|
|
* https://youtu.be/_-AfhLQfb6w
|
|
* https://youtu.be/c33AZBnRHks
|
|
|
|
Reimplementation
|
|
of [the fastest single core impl](https://github.com/oisyn/parkerwords/blob/cc8f2a0d30be980ab141e248125236ba7af1b296/parkerwords.cpp)
|
|
mentioned in the second video. I wanted to see how much the choice of programming languages mattered.
|
|
This script runs in about 3.5 seconds on CPython. When using PyPy it even comes down to about 0.2 seconds. (CPU: Ryzen 1700X)
|
|
|
|
My conclusion therefore is: The choice of algorithm is (again) far more important than the programming language used.
|