Defines a single optimization strategy
| 5 | |
| 6 | /// Defines a single optimization strategy |
| 7 | pub(super) trait OptimizationStrategy { |
| 8 | /// Apply the optimization strategy to the given chunk |
| 9 | /// Returns true if any changes were made |
| 10 | fn optimize(&self, chunk: &mut Chunk) -> bool; |
| 11 | } |
| 12 | |
| 13 | /// The main optimizer that applies multiple optimization strategies |
| 14 | pub(super) struct ChunkOptimizer { |
nothing calls this directly
no outgoing calls
no test coverage detected