Skip to content

Commit

Permalink
Improve storage access patterns in ReportsProcessed DO
Browse files Browse the repository at this point in the history
The format processed reports are now stored in is an array of bytes with
the 16 byte wide ids contiguous in memory
  • Loading branch information
mendess committed Aug 11, 2023
1 parent d619133 commit 54f3288
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 95 deletions.
83 changes: 37 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause

[workspace]
resolver = "2"

members = [
"daphne",
Expand Down Expand Up @@ -38,4 +39,4 @@ thiserror = "1.0.44"
tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread"] }
tracing = "0.1.37"
url = { version = "2.4.0", features = ["serde"] }
worker = "0.0.17"
worker = "0.0.18"
1 change: 1 addition & 0 deletions daphne/src/messages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ macro_rules! id_struct {
($sname:ident, $len:expr, $doc:expr) => {
#[doc=$doc]
#[derive(Clone, Debug, Default, Deserialize, Hash, PartialEq, Eq, Serialize)]
#[repr(transparent)]
pub struct $sname(#[serde(with = "hex")] pub [u8; $len]);

impl $sname {
Expand Down
Loading

0 comments on commit 54f3288

Please sign in to comment.