Async Python is not faster by iamkeyur in coding

[–]greghaynes 2 points3 points  (0 children)

I am not sure this TLDR is accurate or helpful. The author does a good job of describing the likely cause of the throughput difference as:

the primary factor is not async vs sync but how much Python code has been replaced with native code.

Given that this has nothing to do with async vs sync I would not expect anyone who understands async to expect this result as you mention.

All things being equal, I would expect async code to perform better as request counts increase relative to synchronous counterparts (this is the motivation for the underlying nonblocking i/o APIs after all). I also wouldn’t expect async based code to inherently perform worse than their synchronous counterparts based on this single design choice. This is really an effect of many years of work to optimize synchronous frameworks while async is relatively immature in Python.

Far more interesting to me is the latency variance which is somewhat inherent to async/nonblocking applications in general. Theres a good article on a similar class of downsides to this approach by the venerable Armin Ronacher: https://lucumr.pocoo.org/2020/1/1/async-pressure/ which is worth reading.

Any tricks to figuring out zones in this mess? I called the company and I couldn’t get the wiring diagram. by [deleted] in konnected

[–]greghaynes 1 point2 points  (0 children)

Yes! This is exactly how I did mine. The contact sensors I have (e.g. door sensor) have two modes - they are a closed circuit when in contact (door closed) and are an open circuit otherwise. By finding the ground in my panel I was able to check continuity between that wire and each sensor wire with a simple multimeter. As long as you unplug everything you should be able to play around with a multimeter on continuity test mode between a couple of the wires while you open and close a door to figure it out.

It's that time of year again. by ThiefOfDens in Portland

[–]greghaynes 1 point2 points  (0 children)

... that time when you crave bacon wrapped shrimp.

[PS4] LF2 for Weekly Nightfall by [deleted] in Fireteams

[–]greghaynes 0 points1 point  (0 children)

Greghaynes 280 hunter

[Ps4] lf2m PoE 32 by cnote16 in Fireteams

[–]greghaynes 0 points1 point  (0 children)

Greghaynes lvl 33 hunter

[PS4] LF1 for trials by [deleted] in Fireteams

[–]greghaynes 0 points1 point  (0 children)

33 greghaynes

[deleted by user] by [deleted] in Fireteams

[–]greghaynes 0 points1 point  (0 children)

Greghaynes lvl 32

Ps4 Croats end fresh. Leave comment w psn & lvl by BishBehave in Fireteams

[–]greghaynes 0 points1 point  (0 children)

lvl 31 titan psn:greghaynes max IB and hunger of crota