]> git.lizzy.rs Git - rust.git/commitdiff
don't be too perf-greedy
authorRalf Jung <post@ralfj.de>
Mon, 22 Oct 2018 17:17:37 +0000 (19:17 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 28 Oct 2018 10:49:02 +0000 (11:49 +0100)
src/librustc_mir/interpret/memory.rs

index 982463740974a95b0a9e298364e07b53c53410d1..689a29cff6e9e465554829b05194cf14da53f332 100644 (file)
@@ -158,7 +158,7 @@ pub fn reallocate(
         }
 
         // For simplicities' sake, we implement reallocate as "alloc, copy, dealloc".
-        // FIXME: Do something more efficient.
+        // This happens so rarely, the perf advantage is outweighed by the maintenance cost.
         let new_ptr = self.allocate(new_size, new_align, kind)?;
         self.copy(
             ptr.into(),