News for hackers. Stuff that matters.
Re:Show HN: Python can make 3M+ WebSocket keys per second by jcarrano on Monday July 03, 2023 @10:48AM (#36573685)
Yes, that's one of the ways one is supposed to optimize Python. Writing a tiny performance-sensitive part of a Python app in C/C++ is a possibility that many people do not think about when they decide they are going to develop the whole app in C/C++ and can be a much a smarter choice.
Re:Show HN: Python can make 3M+ WebSocket keys per second by phoe-krk on Monday July 03, 2023 @10:51AM (#36573738)
In a way, but at this point your stack is Python/C++, where Python serves the role of a high-level language and C++ serves the role of the fast one. You're not optimizing Python-as-a-language at that point; you're FFIing to another codebase written in a different language.

So, if anything, the title should say "Python, when linked with C++ code, can make (...)"