You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not good, I was planning on using padding to contain the traced bit. Without a traced bit trace must fallback to a lookup.
On unpadded structs the plan is to add a probabilistic bit set by the header, but this will never be in the same cache line as the struct being traced.
A faster cache friendly UB workaround might be adding a const unpadded to Traceequal to the sum of size_of for all fields.
This is not good, I was planning on using padding to contain the traced bit. Without a traced bit trace must fallback to a lookup.
On unpadded structs the plan is to add a probabilistic bit set by the header, but this will never be in the same cache line as the struct being traced.
A faster cache friendly UB workaround might be adding a
const unpadded
toTrace
equal to the sum ofsize_of
for all fields.https://users.rust-lang.org/t/size-of-type-without-alignment-padding/24183/5
rust-lang/rfcs#1397
The text was updated successfully, but these errors were encountered: