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

Re^2: Proof of concept: File::Index

by davido (Cardinal)
on May 13, 2006 at 15:48 UTC ( #549244=note: print w/replies, xml ) Need Help??

in reply to Re: Proof of concept: File::Index
in thread Proof of concept: File::Index

Yes, future enhancements will perform basic sanity checks. It's a slipery slope though; I could perform a checksum check, but then that defeats the efficiency purpose of storing the index in the first place. The best suggestions have been to keep track of modification times and file sizes. While not idiot-proof, such enhancements will catch a lot of out of sync problems.

Ultimately it will be up to the module's users to decide if the file being indexed is reliable enough to be worth indexing, and how often it will need to be re-indexed. There are some situations where it just won't be practical; such as in environments where many sources are contributing to the data file at unknown intervals.


Replies are listed 'Best First'.
Re^3: Proof of concept: File::Index
by spiritway (Vicar) on May 13, 2006 at 16:23 UTC

    I feel your pain - when is it ever enough, vs. when does it cost too much to check these things?

    Even so this looks to be a great solution to a whole lot of semi-minor major problems, where you don't want to just slurp the file, but don't much care to walk through it ever time, either. I think it's great;-).

    Update: Corrected "minor" mistake.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (None)
    As of 2022-01-26 07:23 GMT
    Find Nodes?
      Voting Booth?
      In 2022, my preferred method to securely store passwords is:

      Results (69 votes). Check out past polls.