My numpy rewrite was 300x faster in isolation. End-to-end it was slower.
my CLI search took 4.3 seconds for 5000 files. i swapped the python cosine loop for a numpy matmul. it got slower.
short-lived python CLIs punish optimizing the wrong layer.
this is what happened ship
yuvrajangadsingh.hashnode.dev6 min read