Repository navigation
iyi 0.20.0
std/http's Server.serve answers on every core, and a parallel task
is free to move between them. serve now runs each connection as a
parallel task on the pool, workers: 1 keeps the one-thread server, and
the pooled method 0.19.1 added beside it is gone (#145). A parallel task
that parks resumes on whichever worker is free, idle workers steal half
of a busy one's queue, and a task that computes in a loop, a long
library call or a recursion gives its worker up after 5 to 10 ms; the
allocator's centre is split by size class, so workers no longer queue on
one lock to refill, and a collection's budget is floored per thread, its
debt swept by every thread past it. A block that runs on other threads
and reaches module state through a call is warned about, once a
constant, and @[SafeReach("why")] marks the state that is safe (#148);
std/log's Logger and std/regex's Regex are Share, so a constant of
either says nothing. Windows has one completion port for the whole
process, which any thread takes from, with the priority boost off;
darwin's stop and mark helpers park on libSystem's futex, which needs
macOS 14.4, and CI's darwin jobs run on macos-15 building for 14.4. A
concurrent mark that could stall for good ends (#149), the sweep keeps
warm the pages the next epoch comes back for (#150), and Windows no
longer names a deadlock where a woken thread holds its sleeper; a darwin
thread stopped at its birth is no longer killed by libplatform, and a
task switched in on a worker begins its own quantum. A std/tls
connection that refuses its peer lets the alert arrive before it closes.
From contributors: a refused non-blocking connect is reported on Unix
(#153), macOS's own libiconv skips invalid bytes correctly (#152), a
Process spec pins its PATH (#154), and bench/windows_exercise.sh
§2e ends the runner alone and proves its check can fail (#155).
Not here, and said so: std/tls has not been audited and is not to be
called secure until it is. A parallel task's unit - the task and the
tasks spawn starts inside it - still runs one at a time; a program that
wants more cores starts more parallel tasks.
Known, measured and not fixed. On Windows 11 with 12 logical
processors (the user's machine), best of 3 interleaved with the master
before the shared completion port, bench/web_cores.iyi's light endpoints
on twelve workers are 6-11% slower: check_version 105,837 requests a
second against 119,161 and order 95,523 against 101,976, both still
above Go's twin (74,596 and 42,970). The cause is not found. On the same
machine issue #145's real app on master 1ae9e94, twelve workers and
best of 3, answers 1.08 times goturkiye at the geometric mean of its 11
GET endpoints (648.4 requests a second against 602.3), but its p99 on the
heavy endpoints (246-352 ms against 152-260) and its peak working set
(430 MB against 139) are still above Go's.