> I can probably write vanilla JS or Python code that does that in 10 lines or so and would finish in around 5 seconds.
Really? There are certainly frameworks that you can use to achieve this performance in that amount of code, but I would be really interested to see that in vanilla JS/Python.