The computers are fast, but you don't know it
I&#x27;ve been lightly banging the drum the last few years that a lot of programmers don&#x27;t seem to understand how fast computers are, and often ship code that is just <i>miserably</i> slower than it needs to be, like the code in this article, because they simply don&#x27;t realize that their code <i>ought</i> to be much, much faster. There&#x27;s still a lot of very early-2000s ideas of how fast computers are floating around. I&#x27;ve wondered how much of it is the still-extensive use of dynamic scripting languages and programmers not understanding just <i>how much</i> performance you can throw away how quickly with those things. It isn&#x27;t even just the slowdown you get just from using one at all; it&#x27;s really easy to pile on several layers of indirection without really noticing it. And in the end, the code seems to run &quot;fast enough&quot; and nobody involved really notices that what is running in 750ms really ought to run in something more like 200us.<p>I have a hard time using (pure) Python anymore for any task that speed is even <i>remotely</i> a consideration for anymore. Not only is it slow even at the best of times, but so many of its features beg you to slow down even more without thinking about it.