3 ms·
Right, but when can you throw out your initial values? Because if this is going to be usable you have to free up memory sometime.
by fallingknife 6y ago
Right, but when can you throw out your initial values? Because if this is going to be usable you have to free up memory sometime.
- ravi-delia 6y agoIt goes something like this: 1) Perform some reversible operation 2) Copy answer to another location (At some cost in heat) 3) Perform reverse operation, which rolls back memory to starting point When you're done you have zeroed out memory, and the only costly operation was the copying of the answer.
- a1369209993 6y agoYou can't. If you want to zero the memory holding the initial values, you have to exchange it with some other memory. This is how current ('non'-reversable) computers work: exchanging junk data with the large number of known-value bits constituting a low-temperature and/or fixed-voltage environment via diffusion (eg, attaching a bit storage location to GND to clear it by diffusing its change into the GND bus + waste heat).