mozilla/addon-sdk — pull request #1134 by Mossop (2013-07-26 00:20:14+00:00)
Title: Bug 893276: Only write simple-storage to disk after it has been changed.

This uses an asynchronous hash function to only write when the data is changed. I've used MD5 because it's cheap to calculate and we don't care much about collisions.