|
Posted by Tim Roberts on 10/14/06 05:15
"comp.lang.php" <phillip.s.powell@gmail.com> wrote:
>
>Tim Roberts wrote:
>>
>> You shouldn't worry too much about efficiency until you try it. Try doing
>> an "ls *.zip" from a command line; the "glob" is going to take roughly the
>> same time. The Unix directory APIs are pretty efficient.
>
>Ok cool, however, the requirements for this portable web app is that it
>must work in both Unix and Windows environments equally, thus,
>obviously can't just do "ls *.zip" but also "dir /w *.zip" as well;
I did not suggest that you actually use "ls *.zip" in your app. I
suggested that you do it ONE TIME and notice how quickly it runs, because
it uses essentially the same mechanism that "glob" will use. My purpose in
doing so was merely to reassure you that "glob" is not inefficient.
>how does "glob" play with Windows?
It works fine on Windows.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|