Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^6: Perlmonks 'Not logged in Error' - Proposal for fix (cpu)

by tinita (Parson)
on Jan 21, 2013 at 23:19 UTC ( #1014520=note: print w/replies, xml ) Need Help??

in reply to Re^5: Perlmonks 'Not logged in Error' - Proposal for fix (cpu)
in thread Perlmonks 'Not logged in Error' - Proposal for fix

I'm sorry that you have no clue about CPU load.
oh yeah, sure.
But a redirect is not cost-free. It means that there are two page loads
It's an apache redirect which means there is no content coming back the first time and no perl code involved. and it's only for those links missing the 'www.' - the minority. And starting with the redirects, people will post less of the "wrong" links.
That's actually a ton more CPU than the tiny addition in the middle of the existing code for rendering user content
this would be happening for every request, also the ones with 'www.' - the majority.
and I actually had no comment at all (yet) on the cookie domain stuff.
I'm really looking forward to that now.
  • Comment on Re^6: Perlmonks 'Not logged in Error' - Proposal for fix (cpu)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014520]
[Corion]: I mostly wonder how I can add this "reversal" to my toolchest, and if it's worth it or just clever
[choroba]: It should greatly simplify the parsing code, no flags or additional reading of the next buffer needed
[Corion]: choroba: Yeah, that's why I like that approach; it seems even quite obvious in retrospect to me, but many things are in hindsight ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2016-12-06 15:38 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (109 votes). Check out past polls.