-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand CommandSender to support SystemCommand (#2344)
Built on top of: #2330 Need to rebase after merging. ## Motivation The new CommandSender introduced in #2339 was limited to only supporting Commands from `re_ui`, which has a very limited set of dependencies. We needed a similar pattern for commands carrying additional data outside the context of the command palette. ## Overview - Rename `Commmand` -> `UICommand` - Introduce `SystemCommand` - Introduce a new `Command` as a union of `UICommand` and `SystemCommand` - Introduce new traits for sending the respective types. - Moves the implementation of the `CommanSender` to `re_viewer_context` so we can access it from more places. - Switches the business for setting recording id to use the new `SystemCommand` interfaces. - Adds `CommandSender` to `ViewerContext` so we can use it from the Blueprint panel in the future. ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [ ] I've included a screenshot or gif (if applicable) <!-- This line will get updated when the PR build summary job finishes. --> PR Build Summary: https://build.rerun.io/pr/2344 <!-- pr-link-docs:start --> Docs preview: https://rerun.io/preview/af3f5f8/docs Examples preview: https://rerun.io/preview/af3f5f8/examples <!-- pr-link-docs:end -->
- Loading branch information
Showing
15 changed files
with
268 additions
and
175 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
370e16f
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/latest_at/default
406
ns/iter (± 1
)305
ns/iter (± 8
)1.33
datastore/num_rows=1000/num_instances=1000/packed=false/latest_at_missing/primary/default
300
ns/iter (± 1
)221
ns/iter (± 4
)1.36
datastore/num_rows=1000/num_instances=1000/packed=false/latest_at_missing/secondaries/default
457
ns/iter (± 2
)346
ns/iter (± 7
)1.32
datastore/num_rows=1000/num_instances=1000/gc/default
2661373
ns/iter (± 13221
)1733174
ns/iter (± 8982
)1.54
mono_points_arrow/generate_message_bundles
38377223
ns/iter (± 1157064
)28737727
ns/iter (± 792245
)1.34
mono_points_arrow/decode_message_bundles
81090188
ns/iter (± 1514880
)59158669
ns/iter (± 817639
)1.37
mono_points_arrow_batched/generate_message_bundles
25702693
ns/iter (± 1621050
)18376769
ns/iter (± 387734
)1.40
mono_points_arrow_batched/generate_messages
5357422
ns/iter (± 245584
)3687140
ns/iter (± 65741
)1.45
mono_points_arrow_batched/encode_total
32655825
ns/iter (± 1815826
)23707693
ns/iter (± 145905
)1.38
mono_points_arrow_batched/decode_log_msg
530256
ns/iter (± 1944
)327507
ns/iter (± 584
)1.62
mono_points_arrow_batched/decode_message_bundles
9540767
ns/iter (± 230940
)7497323
ns/iter (± 8623
)1.27
mono_points_arrow_batched/decode_total
10056395
ns/iter (± 193135
)7818523
ns/iter (± 63396
)1.29
batch_points_arrow/decode_log_msg
71744
ns/iter (± 371
)47574
ns/iter (± 121
)1.51
batch_points_arrow/decode_total
78827
ns/iter (± 321
)53131
ns/iter (± 142
)1.48
arrow_mono_points/insert
2855433967
ns/iter (± 16990142
)1774794135
ns/iter (± 4602343
)1.61
arrow_mono_points/query
1342722
ns/iter (± 16368
)932112
ns/iter (± 2177
)1.44
arrow_batch_points/query
17059
ns/iter (± 126
)12094
ns/iter (± 2
)1.41
arrow_batch_vecs/query
477252
ns/iter (± 2097
)316298
ns/iter (± 185
)1.51
This comment was automatically generated by workflow using github-action-benchmark.