Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My 5-minute version:

- Get the overall system structure in Python. Get the architectural design right, and the big-O stuff right.

- If there are bottlenecks, re-code those directly in C, cython, or similar. Or better yet, find libraries.

Python is great for expressing high-level operations and system design. It is also very easy to integrate with native code. I've never had much happiness in optimizing Python itself beyond that. Broadly speaking, code falls into three categories:

- Most code: Instant. Performance doesn't matter. Python

- Some code: Big-O(lifespan of the universe). Not worth building.

- Narrow slice of stuff in between: Don't do in Python, but use Python as the glue.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: