---
title: "Discussion on \"My numpy rewrite was 300x faster in isolation. End-to-end it was slower.\" | Hashnode"
description: "Discussion on \"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.\nshort-lived python CLIs punish optimizing the wrong layer.\nthis is what happened ship"
url: "https://hashnode.com/posts/my-numpy-rewrite-was-300x-faster-in-isolation-end-to-end-it-was-slower/69e60b3c1faed8cd148be5fe"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [My numpy rewrite was 300x faster in isolation. End-to-end it was slower.](https://yuvrajangadsingh.hashnode.dev/my-numpy-rewrite-was-300x-faster-in-isolation-end-to-end-it-was-slower?utm_source=hashnode&utm_medium=feed)

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

Apr 20 · 6 min read · yuvrajangadsingh.hashnode.dev  
Read the article

## Written by

[Yuvraj Angad Singh](https://hashnode.com/@yuvrajangadsingh)

@yuvrajangadsingh · Bengaluru, India

  
[View profile](https://hashnode.com/@yuvrajangadsingh)

Software Engineer

Software Engineer &amp; AI Enthusiast | Founder of AntEngage Passionate about building innovative solutions at the intersection of AI and customer engagement. I write about software engineering best practices, AI/ML developments, and my journey in tech entrepreneurship. Currently pioneering Generative AI solutions and sharing insights from my experience as a developer and founder. Let's connect and explore the future of technology together! 🚀

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
