Re:You can list a directory containing 8 million files But n...
by __rkaup__ on Tuesday August 16, 2011 @04:26PM
(#2892739)
I don't think he meant it as an optimization. It's easy to understand as 5 * 2^20, and quicker to type.
[ Parent
| on HN ]
Re:You can list a directory containing 8 million files But n...
by scott_s on Tuesday August 16, 2011 @05:47PM
(#2893023)
I much prefer 5 * 1024 * 1024. I have to stop and do some reasoning with 5 << 20.
Re:You can list a directory containing 8 million files But n...
by unwind on Friday August 26, 2011 @04:10AM
(#2927804)
Correct, to me it's idiomatic. I realize it's not for everyone, so the ultimate best code is probably the way it was written ... On the other hand, sometimes it's fun to push the envelope just a tiny bit, and hope that readers will actually learn something from the code. But that's a thin edge to be balancing on.