Skip to content

Commit

Permalink
update ATTRIBUTE_COUNT
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Sep 8, 2023
1 parent 9078221 commit a46a2db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasm_module/src/data/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use enum_iterator::Sequence;
use serde_repr::{Deserialize_repr, Serialize_repr};
use std::fmt;

// align to 64 bytes = 4 attributes per cache line
pub const ATTRIBUTE_COUNT: usize = 96; // actually only 95 attributes, but we need to align to 64 bytes;
// align to 64 bytes = 2 attributes per cache line
pub const ATTRIBUTE_COUNT: usize = 104;

#[derive(Debug, Sequence, Serialize_repr, Deserialize_repr, Default, Clone, Copy)]
#[repr(u8)]
Expand Down

0 comments on commit a46a2db

Please sign in to comment.