Explorar el Código

Make sure the raft state occupies entire L3 cache.

Jing Yang hace 3 años
padre
commit
17a7dfa1d2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/raft_state.rs

+ 1 - 0
src/raft_state.rs

@@ -10,6 +10,7 @@ pub(crate) enum State {
     Leader,
 }
 
+#[repr(align(64))]
 pub(crate) struct RaftState<Command> {
     pub current_term: Term,
     pub voted_for: Option<Peer>,