Rust LMS: rework connection handling and batch fresh reads #9
Loading…
Reference in a new issue
No description provided.
Delete branch "happyqt/posvyat-challenge:spectral-lms-submission"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rework the request path from the verified 47,000-user baseline: deadline-driven connection checks, allocation-free route matching, inline resource permits and a smaller per-request future. Batch compatible fresh reads with independent authorization checks and bounded PostgreSQL planner estimates. Resource and database connection limits remain unchanged.
Validation: clean Ubuntu build, 137/137 API checks, 14 concurrency and file scenarios, three batching/ACL scenarios and database fault recovery. At 8,000 idle sockets the network changes reduced anonymous memory from 126.4 to 113.3 MiB. In one local 40,000-user comparison, p95 was 899 ms versus 940 ms for the baseline, and peak anonymous memory was 182.6 versus 206.3 MiB; both failed the 500 ms threshold. Following a 48,000-user overload, the five-minute 32,000-user hold failed at p95 616 ms, p99 855 ms, with 203.3 MiB peak anonymous memory. These local measurements are not an official score and do not establish a throughput improvement. The separate cold TLS layout previously produced an official zero; its effect in this combination is unknown.
See VALIDATION.md for methodology and limitations. Only the Rust submission changes; competition tests, workload, schema and seed are untouched.
llm/llm-assisted/organic(human)?
@xfx1337 wrote in #9 (comment):
llm 500%
4e6352fc3b15b9041cf2c08e301e7d4e0d3a9fb54e0d3a9fb5455a5ad622455a5ad6223a20d26861633a0794a351f2c327d3Go/net-http: полное ядро LMS с пакетными чтениями PostgreSQLto Rust/Tokio: LMS с пакетными чтениями и zero-copy файламиRust/Tokio: LMS с пакетными чтениями и zero-copy файламиto Rust/Tokio: компактные HTTP-соединения и пакетные чтенияRust/Tokio: компактные HTTP-соединения и пакетные чтенияto Rust LMS: batched assignment reads and recovery after database timeoutsRust LMS: batched assignment reads and recovery after database timeoutsto Rust LMS: coalesced SQL preparation, batched reads and timeout recoveryRust LMS: coalesced SQL preparation, batched reads and timeout recoveryto Rust LMS: smaller HTTP state with batched PostgreSQL readsRust LMS: smaller HTTP state with batched PostgreSQL readsto Rust LMS: batch fresh reads with bounded SQL cardinalityRust LMS: batch fresh reads with bounded SQL cardinalityto Rust LMS: rework connection handling and batch fresh reads0af2632419650a1230e6650a1230e6c8a3c732d7c8a3c732d78c8d5982e28c8d5982e25520f25901