packages
The Louise packages, each released on its own
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#28 · main · 3 min 34 s
0Étoiles
0Forks
3Issues
Runtime: cpu and io blocking pools, configurable and observable (issue #305, ADR 0005 rev. 2)
The blocking pool had four threads, fixed, one queue, invisible: toki2's logins ran four hashes at a time on 22 cores, queued without bound. - `@extern(c, "sym", blocking(cpu))` and `blocking(io)`: two pools. Plain `blocking` is `cpu`. Attribute arguments may now be an identifier applied to one (parser, AST, tree-sitter grammar). - Sizes: `LOUISE_BLOCKING_CPU_THREADS` (or the `LOUISE_BLOCKING_THREADS` shorthand; default half the cores, 1 to 4) and `LOUISE_BLOCKING_IO_THREADS` (default 16). An invalid one stops the program at start with a message and status 2. - `std/runtime.blocking_stats()`: each pool's size, running and queued calls, for back-pressure. The interpreter runs blocking calls inline and reports the sizes with nothing running. - std's own: file, resolve and TLS config are `io`, PBKDF2 `cpu`; `packages/argon2` says `blocking(cpu)`. - `tl_call_blocking` takes the pool: `TL_ABI_VERSION` 9. Tested natively (`crates/louise/tests/blocking.rs`): sixteen 100 ms calls take ~100 ms with `LOUISE_BLOCKING_THREADS=16` (400 ms by default), a full pool does not delay the other, the stats show the queue, a bad size is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parents ad4340a
2 fichiers modifiés, 7 ajouts, 5 suppressions
argon2/louise.toml+1−1argon2/src/lib.lse+6−4