Repository navigation
persona: the real clock carries each stamp's rounding remainder - #107
Merged
Merged
Conversation
On the real clock an event's elapsed_hours is quantised to 1e-6 h (3.6 ms), but the clock's previous reading moved to the unrounded time, so every stamp's rounding remainder was dropped: events closer than 1.8 ms apart were all stamped 0. The clock now advances by the stamp itself, so the stamps add up to the wall time within half a quantum at any event rate. Measured with the release CLI, an example persona and 2,000 empty events per rate: the time stamped on events 2..N against the wall time from the first stance to the last (loss %; negative: more time stamped than passed). events/s before after as fast as taken (~2.7k) 100 -0.19 1,000 99.1 -0.03 200 11.9 0.00 50 -0.19 0.00 10 -0.04 0.00 The fixed clock, the strand format and recorded strands are unchanged: replay reads the recorded elapsed_hours, and the repository's strands verify with output identical to before.
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.
Fixes time lost on the real clock at high event rates (100 % at ~2.7k events/s, 99 % at 1,000/s, 12 % at 200/s; under 0.2 % after). Fixed clock, strand format and recorded strands unchanged; the repository's strands verify with identical output. Details and measurements in the commit message and CHANGELOG.