HNHacker News
TopNewBestAskShowJobs

omh1280

7 karma · joined December 24, 2022

submissionscomments
omh1280··on A conceptual overview of asyncio
Great read!

Python asyncio can really screw up your runtime performance if you use it poorly. And it's _really_ easy to use poorly.

Consider a FastAPI server using asyncio instead of threading. _Any_ time you drop down into a synchrononous API, you better be sure that you're not doing anything slow. For example, encoding or decoding JSON in Python actually grabs the GIL depending on what library you're using, and then you have no hope of releasing control back to asyncio.

omh1280··on JSON extra uses orjson instead of ujson (2019)
I’ve also been wary of orjson considering ijl is anonymous and the only one authoring commits. Any ideas on if security folks are checking repository artifacts and verifying builds for projects like this?