This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zzzeek
Recipients Rokas K. (rku), crusaderky, djarb, jcea, martin.panter, yselivanov, zzzeek
Date 2020-07-06.23:28:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594078105.79.0.649703631221.issue22239@roundup.psfhosted.org>
In-reply-to
Content
yes so if you have async/await all internal, are you saying you can make that work for synchronous code *without* running the event loop?  that is, some kind of container that just does the right thing?  my concern with that would still be performance.    When asyncio was based on yield and exception throws, that was a lot of overhead to add to functions and that was what my performance testing some years back showed.   w/ async/await I'm sure things have been optimized, but in general when i have function a() -> b() -> c(), I am trying to iron as much Python overhead as I possibly can out of that and I'd be concerned that the machinery to work through async/await would add latency.   additionally if it was async/await internally but then i need to access the majority of Python DBAPIs that are sync, I need a thread pool anyway, right?  which is also another big barrier to jump over.

It seems you were involved with urllib3's approach to use a code rewriter rather than a runtime approach based on the discussion at https://github.com/urllib3/urllib3/issues/1323 , but it's not clear if Python 2 compatibility was the only factor or if the concern of "writing a giant shim" was also.
History
Date User Action Args
2020-07-06 23:28:25zzzeeksetrecipients: + zzzeek, jcea, djarb, martin.panter, yselivanov, Rokas K. (rku), crusaderky
2020-07-06 23:28:25zzzeeksetmessageid: <1594078105.79.0.649703631221.issue22239@roundup.psfhosted.org>
2020-07-06 23:28:25zzzeeklinkissue22239 messages
2020-07-06 23:28:25zzzeekcreate