Re:My experience with using cp to copy 432 million files (39...
by andreasvc on Thursday September 11, 2014 @07:29PM
(#8305812)
Isn't it a terribly inefficient design to malloc hash entries individually? It would make more sense to use a pool / arena for that.
[ Parent
| on HN ]
Re:My experience with using cp to copy 432 million files (39...
by mjn on Thursday September 11, 2014 @07:42PM
(#8305866)
You could, but it's fairly uncommon to do that kind of "custom allocator" style in C, especially in traditional Unix utility programming. It seems to be more of a C++ thing culturally in my experience, though you do find it in C in "big" programs, like scientific-computing code.