Solve perf problem on CmpLog map reset
This commit is contained in:
parent
dea21da5c3
commit
d976b02609
@ -115,12 +115,8 @@ impl CmpMap for CmpLogMap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn reset(&mut self) -> Result<(), Error> {
|
fn reset(&mut self) -> Result<(), Error> {
|
||||||
self.headers = [CmpLogHeader {
|
self.headers = unsafe { core::mem::zeroed() };
|
||||||
hits: 0,
|
// self.operands = unsafe { core::mem::zeroed() };
|
||||||
shape: 0,
|
|
||||||
kind: 0,
|
|
||||||
}; CMPLOG_MAP_W];
|
|
||||||
self.operands = [[CmpLogOperands(0, 0); CMPLOG_MAP_H]; CMPLOG_MAP_W];
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user