AeneasVerif / charon

Interface with the rustc compiler for the purpose of program verification
Apache License 2.0
62 stars 15 forks source link

Only use immutable data structures when it's useful #275

Closed Nadrieril closed 5 days ago

Nadrieril commented 5 days ago

Cloning a vector of a few elements is cheaper than using an immutable data structure, and there were plenty of cases where normal data structures were totally sufficient. The only place I left them is control flow reconstruction, which makes real use of sharing and cheap clones.