Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: File glob question

by licking9Volts (Pilgrim)
on Jun 03, 2002 at 18:23 UTC ( #171298=note: print w/ replies, xml ) Need Help??


in reply to Re: File glob question
in thread File glob question

rinceWind, I am running this on Win2k actually. The program sits in the same directory as the data files though. Would network problems still affect it? Also, Abigail, would it be any faster if I gathered all of the file names into a seperate hash or array? BTW, the reason, I am concerned with speed is that I would like to eventually use part of this code on an internal website as a kind of file archive search. If it really came down to it, I could just create a separate index file with the data I need, then update it weekly and search on that, but how much fun is that? Thanks.

Update: I crossed out the line above because I realized that with either scenario, it's still going to glob the file names into something and therefore it still has to read ALL of the file names. Thanks Abigail.


Comment on Re: Re: File glob question
Re^3: File glob question
by Aristotle (Chancellor) on Jun 03, 2002 at 22:11 UTC
    Actually, if your CGI's being hit with any kind of traffic, you'll have to do something like that. At the very least, you'll need something from the Cache::Cache clique or one of the other similar modules.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-08-21 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (144 votes), past polls