Repository navigation
Commit b4319a7
committed
Replace wait_event_or_timeout internals with async_timeout
Its unlikely that https://bugs.python.org/issue39032 and
python/cpython#83213 will be fixed
soon. While we moved away from an asyncio.Condition, we still
has a similar problem with waiting for an asyncio.Event which
wait_event_or_timeout played well with. async_timeout avoids
creating a task so its a bit more efficient. Since we call
these when resolving ServiceInfo, avoiding task creation
will resolve a performance problem when ServiceBrowsers
startup as they tend to create task storms when coupled
with ServiceInfo lookups.1 parent 88323d0 commit b4319a7
3 files changed
Lines changed: 7 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
60 | 45 | | |
61 | 46 | | |
62 | 47 | | |
| |||
114 | 99 | | |
115 | 100 | | |
116 | 101 | | |
117 | | - | |
118 | 102 | | |
119 | 103 | | |
120 | 104 | | |
| |||
0 commit comments