-
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.
Reduce rerun_c library size (by depending on fewer unnecessary crates) (
#4147) ### What * Fix #2905 * reduces Rerun C size from 41.0MiB to 34.2MiB (MacOS aarch64) * feels like there's more we should be able to do, but this PR stops the bleed of having it become larger as we add new types! * note that since this is a static library, typically the actual stripping occurs when linking the final binary, so while it's great that our library gets smaller for many reasons, it's not _critical_ * `re_log_types` no longer depends on `re_types` * `re_sdk` no longer depends on `re_memory` * `re_sdk` no longer depends on `re_types` * things only come together now on `rerun` crate Dependency graph before: ![deps-old](https://github.com/rerun-io/rerun/assets/1220815/8013eccc-6c8b-406e-a821-756d8dab31d7) Dependency graph now: ![deps-new](https://github.com/rerun-io/rerun/assets/1220815/b1fc5aae-8329-49d5-a059-1c93f39addd5) Graphs via: `cargo depgraph --all-deps --workspace-only --all-features --dedup-transitive-deps | dot -Tpng > deps.png` Rerun C checks via: `cargo build -p rerun_c --release && ls -l target/release/librerun_c.a` ### 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) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/4147) (if applicable) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/4147) - [Docs preview](https://rerun.io/preview/8f3291ee534b1ca6eb4a3e3f4dd968ec44998336/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/8f3291ee534b1ca6eb4a3e3f4dd968ec44998336/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
- Loading branch information
Showing
30 changed files
with
175 additions
and
161 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
mod data_source; | ||
|
||
mod load_file; | ||
mod load_file_contents; | ||
mod web_sockets; | ||
|
||
|
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
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.