Resets the cache size to account for fixed costs, such as the program and stack sizes.
(&mut self)
| 449 | /// Resets the cache size to account for fixed costs, such as the program |
| 450 | /// and stack sizes. |
| 451 | fn reset_size(&mut self) { |
| 452 | self.size = |
| 453 | (self.start_states.len() * mem::size_of::<StatePtr>()) |
| 454 | + (self.stack.len() * mem::size_of::<InstPtr>()); |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | impl<'a> Fsm<'a> { |
no test coverage detected