Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Re: Is readdir ever deterministic?

by evlg (Novice)
on Sep 17, 2001 at 20:28 UTC ( #112892=note: print w/ replies, xml ) Need Help??

in reply to Re: Is readdir ever deterministic?
in thread Is readdir ever deterministic?

I concur, especially since testing for . and .. is not especially expensive. Sure, there are 2 extra checks per directory entry, but unless a profiler tells you that is a specific performance problem for your program, IMO it's not worth the potential maintenance problems to "optimize" it. Later programmers might not immediately understand why the code did that, and it could the time of those assigned to maintain that code.

Comment on Re: Re: Is readdir ever deterministic?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://112892]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2015-11-26 00:55 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (695 votes), past polls