Skip to content

Commit 76743bc

Browse files
committed
Reinstate low priority benchmarks and docs.
1 parent 3677fb4 commit 76743bc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

FASTPOLL.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module documented [here](./lowpower/README.md).
4949
2.2 [Timing accuracy](./FASTPOLL.md#22-timing-accuracy)
5050
2.3 [Polling in uasyncio](./FASTPOLL.md#23-polling-in-usayncio)
5151
3. [The modified version](./FASTPOLL.md#3-the-modified-version)
52-
3.1 [Fast I/O](./FASTPOLL.md#31-fast-I/O)
52+
3.1 [Fast IO](./FASTPOLL.md#31-fast-IO)
5353
3.2 [Low Priority](./FASTPOLL.md#32-low-priority)
5454
3.3 [Other Features](./FASTPOLL.md#33-other-features)
5555
3.4 [Low priority yield](./FASTPOLL.md#34-low-priority-yield)
@@ -260,7 +260,9 @@ Arguments to `get_event_loop()`:
260260
3. `ioq_len=0` Length of I/O queue. Default: no queue is created.
261261
4. `lp_len=0` Length of low priority queue. Default: no queue.
262262

263-
## 3.1 Fast I/O
263+
###### [Contents](./FASTPOLL.md#contents)
264+
265+
## 3.1 Fast IO
264266

265267
Device drivers which are to be capable of running at high priority should be
266268
written to use stream I/O: see
@@ -275,6 +277,8 @@ This behaviour may be desired where short bursts of fast data are handled.
275277
Otherwise drivers of such hardware should be designed to avoid hogging, using
276278
techniques like buffering or timing.
277279

280+
###### [Contents](./FASTPOLL.md#contents)
281+
278282
## 3.2 Low Priority
279283

280284
The low priority solution is based on the notion of "after" implying a time
@@ -296,6 +300,8 @@ It adds the following event loop methods:
296300

297301
See [Low priority callbacks](./FASTPOLL.md#35-low-priority-callbacks)
298302

303+
###### [Contents](./FASTPOLL.md#contents)
304+
299305
## 3.3 Other Features
300306

301307
The version has a `version` variable containing 'fast_io'. This enables the
@@ -321,6 +327,9 @@ bar = Bar() # Constructor calls get_event_loop()
321327
# and renders these args inoperative
322328
loop = asyncio.get_event_loop(runq_len=40, waitq_len=40)
323329
```
330+
331+
###### [Contents](./FASTPOLL.md#contents)
332+
324333
## 3.4 Low priority yield
325334

326335
Consider this code fragment:

0 commit comments

Comments
 (0)