forked from rerun-io/rerun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Client-side chunks 1: introduce
Chunk
and its suffle/sort routines (r…
…erun-io#6438) Introduces the new `re_chunk` crate: > A chunk of Rerun data, encoded using Arrow. Used for logging, transport, storage and compute. Specifically, it introduces the `Chunk` type itself, and all methods and helpers related to sorting. A `Chunk` is self-describing: it contains all the data _and_ metadata needed to index it into storage. There are a lot of things that need to be sorted within a `Chunk`, and as such we must make sure to keep track of what is or isn't sorted at all times, to avoid needlessly re-sorting things everytime a chunk changes hands. This necessitates a bunch of sanity checking all over the place to make sure we never end up in undefined states. `Chunk` is not about transport, it's about providing a nice-to-work with representation when manipulating a chunk in memory. Transporting a `Chunk` happens in the next PR. - Fixes rerun-io#1981 --- Part of a PR series to implement our new chunk-based data model on the client-side (SDKs): - rerun-io#6437 - rerun-io#6438 - rerun-io#6439 - rerun-io#6440 - rerun-io#6441
- Loading branch information
Showing
12 changed files
with
1,017 additions
and
9 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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[package] | ||
name = "re_chunk" | ||
authors.workspace = true | ||
description = "A chunk of Rerun data, encoded using Arrow. Used for logging, transport, storage and compute." | ||
edition.workspace = true | ||
homepage.workspace = true | ||
include.workspace = true | ||
license.workspace = true | ||
publish = true | ||
readme = "README.md" | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
version.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
|
||
|
||
[features] | ||
default = [] | ||
|
||
|
||
[dependencies] | ||
|
||
# Rerun | ||
re_build_info.workspace = true | ||
re_format.workspace = true | ||
re_format_arrow.workspace = true | ||
re_log.workspace = true | ||
re_log_types.workspace = true | ||
re_string_interner.workspace = true | ||
re_tracing.workspace = true | ||
re_tuid.workspace = true | ||
re_types_core.workspace = true | ||
|
||
# External | ||
ahash.workspace = true | ||
anyhow.workspace = true | ||
arrow2 = { workspace = true, features = [ | ||
"io_ipc", | ||
"io_print", | ||
"compute_comparison", | ||
"compute_concatenate", | ||
] } | ||
backtrace.workspace = true | ||
document-features.workspace = true | ||
itertools.workspace = true | ||
nohash-hasher.workspace = true | ||
rand = { workspace = true, features = ["std_rng"] } | ||
similar-asserts.workspace = true | ||
smallvec.workspace = true | ||
static_assertions.workspace = true | ||
thiserror.workspace = true | ||
|
||
# Native dependencies: | ||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
crossbeam.workspace = true | ||
|
||
|
||
[dev-dependencies] | ||
criterion.workspace = true | ||
mimalloc.workspace = true | ||
similar-asserts.workspace = true |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# re_chunk | ||
|
||
Part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates. | ||
|
||
[![Latest version](https://img.shields.io/crates/v/re_chunk.svg)](https://crates.io/crates/re_chunk?speculative-link) | ||
[![Documentation](https://docs.rs/re_chunk/badge.svg)](https://docs.rs/re_chunk?speculative-link) | ||
![MIT](https://img.shields.io/badge/license-MIT-blue.svg) | ||
![Apache](https://img.shields.io/badge/license-Apache-blue.svg) | ||
|
||
A chunk of Rerun data, encoded using Arrow. Used for logging, transport, storage and compute. |
Oops, something went wrong.