3 ms·
I'd like to see API's like this implement deferred operations, with help from the kernel. For example, the zip folder could realise that deletion is an expensi
by londons_explore 5y ago
I'd like to see API's like this implement deferred operations, with help from the kernel.
For example, the zip folder could realise that deletion is an expensive task, and defer the job till later. It would tell the kernel that the raw bytes of the zip file are only available to other applications after this operation is complete (so that emailing someone the zip file can't represent the pre-deferred-operations state).
The tree of deferred operations can then be optimized - for example, deleting multiple files in a zip file could be combined into one. Deleting stuff in a zip file, and then deleting the whole file can likewise be combined.
Kinda like peephole optimisations for stuff your OS does.