Rogério Pereira Araujo, MBA’s Post

𝗙𝘂𝗻 𝘁𝗶𝗺𝗲 𝘄𝗶𝘁𝗵 𝗽𝘆𝗼𝟯 Optimize embedded Python in rust is not trivial. At first, I managed to make calls to a Flask webapp from my WSGI enabled server in rust. Today I finally managed to run 𝗼𝗵𝗮 and check performance. Well, it not ended as expected, I got only 300 req/s. Then I moved code which required Python GIL out of request handler, at this point numbers went up, with 3200 req/s. Now I’m going avoid acquire GIL more than once, hope this number goes up several times more. My goal is 80000 req/s, and with that, another post, will all steps need to make this happen. Want to keep up to date with rust 🦀? Follow me or connect 🔗 If you enjoyed this post, like 👍, or comment 💬, or repost ♻️ #rust #python #embed #performance #pyo3 #interop #vetis #scripting

To view or add a comment, sign in

Explore content categories