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.

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 pondering the Monastery: (3)
As of 2016-10-23 23:55 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.