Optimize C++ hot reads and durable bulk writes; fix HTTP backpressure #33
Loading…
Reference in a new issue
No description provided.
Delete branch "hotcaller/posvyat-challenge:submission/cpp-epoll-hotcaller"
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?
Moves common LMS reads and mutation calculation out of PostgreSQL into an authorized resident projection. Independent writes share bounded array statements, while per-pair ordering, immutable retries and commit-only publication preserve durability. Interned values own one stable copy, and repeat lookups avoid temporary allocations. HTTP preserves queued requests after a client write-half-close, completes partial empty-response headers, and resumes input after blocked
100 Continueoutput.Resident state and transport were informed by the two C revisions, actual sequence reservations and input draining by Rust, and grouped cold reads by Zig. These are independent C++ implementations;
OPTIMIZATION.mdrecords all pinned sources and differences. The resident projection assumes this application is the only writer while running; external database changes require restart.Validation: final v20 x86-64 under 512 MiB and ARM64 ASan/UBSan under 1 GiB both pass organizer 137/137 and extended conformance 54/54. The sanitizer also passes all six real bulk SQL forms across 32 pairs, with no diagnostics or OOM and a 853.36 MiB peak. Normal and sanitizer transport fixtures pass eight half-close cases; projection checks cover interned-value ownership, 12,000-value growth, moves and reload. Earlier v16 native and durability/restart checks also passed. The 512 MiB runtime passed with memory-limit pressure and no OOM; the earlier 512 MiB sanitizer failure is retained in
VALIDATION.mdalongside exact revisions, configurations and matching source hashes.Defaults are bulk writes on, named statements off and JSON
writev. Fresh named pipelines reproducibly corrupted responses through local PgBouncer 1.25.2 over TLS; identical direct-PostgreSQL and unnamed-pooler controls passed. This supports the default choice without proving the exact defect or the organizer's pooler version.The v19 600,000-user five-minute hold failed: 64,618.4 requests/s, p95 5,232.64 ms and p99 6,834.18 ms, with 728.77 MiB peak total cgroup memory and no OOM. Its final 15 seconds included diagnostic profiling; latency had already failed before profiling. The earlier v18 60-second probe passed with p95 59.41 ms, but does not establish sustained capacity. These native ARM64 runs used approximately 34 ms database RTT. No official score, victory over the historical 832,000-user result, or million-user capacity is claimed.
e99f7bc0dd8968d41da28968d41da2c34e5eb534Add C++20 epoll/libpq submission for hotcallerto Optimize C++ hot reads and durable bulk writes; fix HTTP backpressureу тебя в ридми буквально есть раздел где ты описываешь какие идеи откуда брал