Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Performance quandary

by SwellJoe (Scribe)
on Feb 24, 2002 at 02:53 UTC ( #147130=note: print w/ replies, xml ) Need Help??


in reply to Re: Performance quandary
in thread Performance quandary

Yep, this part is correct, I'm pretty sure. What happens during find_parent() is that we strip off one path element and a '/'. So, a URL of http://www.url.com/path/element becomes http://www.url.com/path. This is the Right Thing for the database key to match the Squid key for the same object (a requirement for this program).

So when we get down to the 'root' element, of http://www.url.com, this is the absolute last thing we can have an entry for. One more find_parent will strip the /www.url.com, leaving http:/, which what I'm checking for.

Right? I can't skip out on every entry that contains 'http:' because nothing will ever make it to the db. They /all/ have http: as the opener (again, this is so our MD5 hash of the object matches the Squid MD5 of the object--a requirement).


Comment on Re: Re: Performance quandary

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-20 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (99 votes), past polls