Module clone_optimizer

Module clone_optimizer 

Source
Expand description

Clone optimization system for reducing unnecessary clone() calls

This module provides tools to analyze and optimize clone() calls throughout the codebase by replacing them with Arc-based sharing where appropriate.

Structs§

CloneInfo
Information about a specific clone operation
CloneOptimizer
Clone optimization analyzer
CloneStats
Statistics about clone operations in the system

Functions§

should_use_arc
Check if a type should use Arc sharing based on common patterns