Re: Interesting discovery about buffer clearing on R7
PicPocket wrote:
Robert Krawitz wrote:
That shouldn't really matter (it has to anyway, as soon as there are any images on the card). It may be related to the protection mechanism.
That can and does matter, depending on the write algorithm. While it has to be done, the efficiency of doing so can change
Take for example if the write algorithm looks for first empty slot, then checks if X amount of contiguous space is available. If you start from an empty / formatted card, this condition will always be fulfilled on first try. As images get added sequentially, you can still find this on first attempt until the card is nearly full
Conceivably, but I'm pretty sure exFAT is designed a bit more intelligently, and someone would have to go far out of their way to muck the implementation up that badly.
Now try doing the same with files deleted in pockets. You might have to attempt more than once to fulfill the criteria. How conservative X is also matters, because if the writes are trying to avoid filesystem fragmentation without knowing exact size of file to be written upfront, they have to use some heuristic with padding to be effective
With flash memory there's little reason to worry about fragmentation, especially with files as big as images are. JPEG, RAW, and CRAW files are all on the order of 10 MB, which are much bigger than the 4K or so block size of the filesystem.
There can be more similar nuances. I think we are dealing with filesystem overheads here. Not ruling out the effect of protect itself, it probably creates its own data structure that might interfere further, and both aspects can be at play together too
That's why I suggested deleting images from the card on a computer, and without using DPP, which might fix up the protection information itself (unless the protection is relying on file permissions). I know that there are a few small files in another directory (CANONMSC, as I recall) that look like they could contain something like that.
Having said above, I am a bit surprised with the results myself. While I expect overheads to increase, I would have expected a smaller scale when dealing with flash storage