Adopt ephpm_kv_wait() + document streaming brotli (ePHPm #184/#185) - #1
Open
luthermonson wants to merge 1 commit into
Open
Adopt ephpm_kv_wait() + document streaming brotli (ePHPm #184/#185)#1luthermonson wants to merge 1 commit into
luthermonson wants to merge 1 commit into
Conversation
The two ePHPm PRs the spec doc proposed have landed upstream (ephpm/ephpm#184, ephpm/ephpm#185). This makes the demo consume them: - worker.php: the SSE loop feature-detects ephpm_kv_wait() and switches from the 100 ms board:ver poll to a blocking wait — measured (same binary, 8 idle clients, 60 s): idle CPU 0.21 -> 0.01 cpu-s and paint->event latency p50 100.4 ms -> 1.2 ms. Falls back to the poll loop unchanged on v0.5.0 images. - ephpm.toml: commented [server.response] compression_streaming = "sse" block explaining the per-connection persistent-window brotli encoder. - README: new "Upstream upgrades" section with the measured numbers (1,889,173 -> 4,504 wire bytes over a 60 s / 120-paint session, ~420x) and the two fixed limitations removed from the honest-limitations list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ephpm_kv_wait('board:ver', ...)when the server provides it (function_existsfeature detection) — push instead of the 100 ms poll. Unchanged behavior on the published v0.5.0 image.ephpm.tomldocuments the newcompression_streaming = "sse"knob (commented — requires ePHPm > v0.5.0).Measured (local release build, WSL2, same box)
curl -N --compressed).Test plan