Skip to content

Conversation

@laggycomputer
Copy link
Collaborator

  • Introduce the SiteComposable trait, guaranteeing that a GlobalStatistic can be computed from its parts indepedently, concurrently, and potentially out-of-order.
  • Use this trait to create generic code capable of parallelizing any such statistic.

/// }
/// }
/// ```
pub trait SiteComposable: Default + GlobalStatistic {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type should also explicitly be Send + Sync? For example, some statistic type containing a raw pointer should be allowed to compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants