-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simpler, sturdier stateful time tracking in both SDKs (#2506)
(Probably easier to review commit by commit) Follow up to my discussion with @abey79 regarding his poor experience with time tracking, which was summarized in #2501 (comment): > - When implementing the `step` timeline of the scalar example, I first searched for `set_time_sequence` (used in Python API) in the Rust docs, which I found in `RecordingStream`. Turns out it's not in 0.7 and bugged on `main` (or rather ignored by `MsgSender`). Again, it compiled and displayed no error, but no timeline was created. This PR makes it so that `RecordingStream` is always in charge of injecting its internal clock into outgoing rows (unless the caller ask it not to, e.g. because the data is meant to be timeless). This is pretty similar to what was already in place for `log_tick`, except it now applies to every timelines, whether they are builtin or user defined. - Within the Python SDK, this gets rid of all the existing manual time injection stuff. - On the Rust SDK's side, this fixes the issue that `MsgSender` used to ignore the internal clock altogether (i.e. the stateful time APIs were not supported at all for Rust users). - And finally this cleans up the Rust examples a bunch since we now have access to stateful time. --- <!-- This line will get updated when the PR build summary job finishes. --> PR Build Summary: https://build.rerun.io/pr/2506 <!-- pr-link-docs:start --> Docs preview: https://rerun.io/preview/178edf5/docs Examples preview: https://rerun.io/preview/178edf5/examples <!-- pr-link-docs:end -->
- Loading branch information
Showing
9 changed files
with
120 additions
and
185 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
1b10c67
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.25
.datastore/num_rows=1000/num_instances=1000/packed=false/insert/default
4061186
ns/iter (± 75194
)2845953
ns/iter (± 6434
)1.43
datastore/num_rows=1000/num_instances=1000/packed=false/latest_at_missing/primary/default
295
ns/iter (± 0
)230
ns/iter (± 0
)1.28
datastore/num_rows=1000/num_instances=1000/packed=false/range/default
4100873
ns/iter (± 56406
)2895353
ns/iter (± 8774
)1.42
datastore/num_rows=1000/num_instances=1000/gc/default
2650347
ns/iter (± 4961
)1717175
ns/iter (± 4896
)1.54
mono_points_arrow/generate_message_bundles
38809490
ns/iter (± 715579
)28722835
ns/iter (± 814792
)1.35
mono_points_arrow/encode_log_msg
234970816
ns/iter (± 620274
)177976079
ns/iter (± 1445392
)1.32
mono_points_arrow/decode_message_bundles
85118962
ns/iter (± 731699
)60591469
ns/iter (± 597320
)1.40
mono_points_arrow_batched/generate_message_bundles
28108984
ns/iter (± 1516059
)18314861
ns/iter (± 119012
)1.53
mono_points_arrow_batched/generate_messages
5855670
ns/iter (± 310682
)3582539
ns/iter (± 12982
)1.63
mono_points_arrow_batched/encode_log_msg
683246
ns/iter (± 2260
)490506
ns/iter (± 2256
)1.39
mono_points_arrow_batched/encode_total
36000254
ns/iter (± 1503879
)23428623
ns/iter (± 125052
)1.54
mono_points_arrow_batched/decode_message_bundles
9954621
ns/iter (± 364865
)7450939
ns/iter (± 5194
)1.34
mono_points_arrow_batched/decode_total
10599088
ns/iter (± 382609
)7900853
ns/iter (± 17506
)1.34
batch_points_arrow/decode_total
53640
ns/iter (± 181
)41919
ns/iter (± 110
)1.28
arrow_mono_points/insert
2903686096
ns/iter (± 10609966
)1832526612
ns/iter (± 5686519
)1.58
arrow_mono_points/query
1329145
ns/iter (± 10967
)945380
ns/iter (± 1361
)1.41
This comment was automatically generated by workflow using github-action-benchmark.