Category Archives: Uncategorized

When there are too many files in a folder…

Do you remember learning about Javas automatically resizing ArrayLists?

Well I just got to see for the first time and first hand the C equivalent on an Unix system for a SINGLE folders file listing (whilst running rsync) because there were more than the expected number of files in the folder. And not only did this list have to reallocate more memory once; it had to do it 5 times (each time doubling the amount of memory requested).

I got a little scared, but it seemed to happily progress and then I proceeded to remove said folder from existence (it was a recovery folder of a customers broken HDD)