File System Triming

File system triming can help optimize write speed by cleaning data marked for deletion, that would otherwise cause lags while writing further data.

On flash memory any deleted data is first marked for deletion before actually getting deleted.

On Android, actual deletion is skipped to reduce battery consumption, however this can cause huge lag while writing further data: flash memory is written by entire cluster and if any data already exists in a cluster it will have to be read before being actually written. So if a cluster is not empty because of data marked for deletion this will slow down the write process.

FS triming ensures data marked for deletion is actually deleted.

 

Here you can find more information about read/write methods on flash/SSD disks. Note however triming should not and is not activated on flash memory on Android.

 

Not enough information? Please suggest improved/new/updated content e-mailing me the current URL and content you need to get improved/updated.